From 6984a001d6226587a30f07c368016f22a56d3868 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Fri, 15 Aug 2014 03:56:49 +0200 Subject: [PATCH] Win32 build fix after linux work (configure) --- miner.h | 3 +++ x11/cuda_x11_simd512.cu | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/miner.h b/miner.h index 5fb53a6..efdb81b 100644 --- a/miner.h +++ b/miner.h @@ -20,6 +20,8 @@ extern "C" { #define strncasecmp(x,y,z) _strnicmp(x,y,z) #define strcasecmp(x,y) _stricmp(x,y) typedef int ssize_t; +#undef HAVE_ALLOCA_H +#undef HAVE_SYSLOG_H #endif #ifdef STDC_HEADERS @@ -30,6 +32,7 @@ typedef int ssize_t; # include # endif #endif + #ifdef HAVE_ALLOCA_H # include #elif !defined alloca diff --git a/x11/cuda_x11_simd512.cu b/x11/cuda_x11_simd512.cu index b1950c6..0d161c7 100644 --- a/x11/cuda_x11_simd512.cu +++ b/x11/cuda_x11_simd512.cu @@ -178,7 +178,9 @@ X(j) = (u-v) << (2*n); \ __device__ __forceinline__ void FFT_16(int *y) { #if __CUDA_ARCH__ < 300 -#warning FFT_16() function is not compatible with SM 2.1 devices! +#ifndef WIN32 +# warning FFT_16() function is not compatible with SM 2.1 devices! +#endif #endif /* @@ -345,7 +347,9 @@ __device__ __forceinline__ void Expansion(const uint32_t *data, uint4 *g_temp4) { int i; #if __CUDA_ARCH__ < 300 -#warning Expansion() function is not compatible with SM 2.1 Devices +#ifndef WIN32 +# warning Expansion() function is not compatible with SM 2.1 devices +#endif #endif /* Message Expansion using Number Theoretical Transform similar to FFT */