Browse Source

fix mingw ncurses, fix git warning

pull/1/head
R4SAS 7 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 @@ -27,7 +27,7 @@ endif
sgminer_CPPFLAGS += $(ADL_CPPFLAGS)
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)\"
endif

6
adl.c

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

4
driver-opencl.c

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

4
sgminer.c

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

Loading…
Cancel
Save