Win32 build fix after linux work (configure)
This commit is contained in:
parent
cf7351d138
commit
6984a001d6
3
miner.h
3
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 <stdlib.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ALLOCA_H
|
||||
# include <alloca.h>
|
||||
#elif !defined alloca
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user