Browse Source

fix mingw ncurses, fix git warning

pull/1/head
R4SAS 8 years ago
parent
commit
916eb21aa3
  1. 2
      Makefile.am
  2. 6
      adl.c
  3. 4
      driver-opencl.c
  4. 4
      sgminer.c

2
Makefile.am

@ -27,7 +27,7 @@ endif
sgminer_CPPFLAGS += $(ADL_CPPFLAGS) sgminer_CPPFLAGS += $(ADL_CPPFLAGS)
if USE_GIT_VERSION if USE_GIT_VERSION
GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 --dirty') GIT_VERSION := $(shell sh -c 'git describe --tags --abbrev=4 --dirty')
sgminer_CPPFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" sgminer_CPPFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif endif

6
adl.c

@ -16,7 +16,11 @@
#include <math.h> #include <math.h>
#ifdef HAVE_CURSES #ifdef HAVE_CURSES
# include <curses.h> #if defined(__MINGW32__)
#include <ncurses/curses.h>
#else
#include <curses.h>
#endif // defined(__MINGW32__)
#endif #endif
#include "miner.h" #include "miner.h"

4
driver-opencl.c

@ -12,7 +12,11 @@
#include "config.h" #include "config.h"
#ifdef HAVE_CURSES #ifdef HAVE_CURSES
#if defined(__MINGW32__)
#include <ncurses/curses.h>
#else
#include <curses.h> #include <curses.h>
#endif // defined(__MINGW32__)
#endif #endif
#include <string.h> #include <string.h>

4
sgminer.c

@ -13,7 +13,11 @@
#include "config.h" #include "config.h"
#ifdef HAVE_CURSES #ifdef HAVE_CURSES
#if defined(__MINGW32__)
#include <ncurses/curses.h>
#else
#include <curses.h> #include <curses.h>
#endif // defined(__MINGW32__)
#endif #endif
#include <stdio.h> #include <stdio.h>

Loading…
Cancel
Save