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 strncasecmp(x,y,z) _strnicmp(x,y,z)
|
||||||
#define strcasecmp(x,y) _stricmp(x,y)
|
#define strcasecmp(x,y) _stricmp(x,y)
|
||||||
typedef int ssize_t;
|
typedef int ssize_t;
|
||||||
|
#undef HAVE_ALLOCA_H
|
||||||
|
#undef HAVE_SYSLOG_H
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef STDC_HEADERS
|
#ifdef STDC_HEADERS
|
||||||
@ -30,6 +32,7 @@ typedef int ssize_t;
|
|||||||
# include <stdlib.h>
|
# include <stdlib.h>
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_ALLOCA_H
|
#ifdef HAVE_ALLOCA_H
|
||||||
# include <alloca.h>
|
# include <alloca.h>
|
||||||
#elif !defined alloca
|
#elif !defined alloca
|
||||||
|
@ -178,7 +178,9 @@ X(j) = (u-v) << (2*n); \
|
|||||||
__device__ __forceinline__ void FFT_16(int *y) {
|
__device__ __forceinline__ void FFT_16(int *y) {
|
||||||
|
|
||||||
#if __CUDA_ARCH__ < 300
|
#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
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -345,7 +347,9 @@ __device__ __forceinline__ void Expansion(const uint32_t *data, uint4 *g_temp4)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
#if __CUDA_ARCH__ < 300
|
#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
|
#endif
|
||||||
|
|
||||||
/* Message Expansion using Number Theoretical Transform similar to FFT */
|
/* Message Expansion using Number Theoretical Transform similar to FFT */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user