1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-29 16:04:33 +00:00

Fix pacakaging missing adl headers and build failure without adl sdk headers installed.

This commit is contained in:
Con Kolivas 2011-09-06 09:01:24 +10:00
parent 2f5f7efd22
commit a1ba15fb52
2 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ cgminer_SOURCES = elist.h miner.h compat.h bench_block.h \
sha256_generic.c sha256_4way.c sha256_via.c \
sha256_cryptopp.c sha256_sse2_amd64.c \
sha256_sse4_amd64.c sha256_sse2_i386.c \
adl.c \
adl.c adl.h adl_functions.h \
phatk110817.cl poclbm110817.cl
cgminer_LDFLAGS = $(PTHREAD_FLAGS)

8
adl.h
View File

@ -19,9 +19,9 @@ void change_gpusettings(int gpu);
void gpu_autotune(int gpu);
void clear_adl(int nDevs);
#else /* HAVE_ADL */
void init_adl(int nDevs) {}
void change_gpusettings(int gpu) { }
void gpu_autotune(int gpu) { }
void clear_adl(int nDevs) {}
static inline void init_adl(int nDevs) {}
static inline void change_gpusettings(int gpu) { }
static inline void gpu_autotune(int gpu) { }
static inline void clear_adl(int nDevs) {}
#endif
#endif