1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-10 14:57:53 +00:00

cuda_helper: define UINT32_MAX if not defined

seems not defined on slackware...
This commit is contained in:
Tanguy Pruvot 2015-05-12 18:04:19 +02:00
parent 2f541065fb
commit 7bf256c81c
2 changed files with 5 additions and 4 deletions

View File

@ -13,6 +13,11 @@
#include <stdint.h> #include <stdint.h>
#ifndef UINT32_MAX
/* slackware need that */
#define UINT32_MAX UINT_MAX
#endif
#ifndef MAX_GPUS #ifndef MAX_GPUS
#define MAX_GPUS 16 #define MAX_GPUS 16
#endif #endif

View File

@ -23,10 +23,6 @@
#include "cuda_helper.h" #include "cuda_helper.h"
#ifndef UINT32_MAX
#define UINT32_MAX UINT_MAX
#endif
typedef unsigned char BitSequence; typedef unsigned char BitSequence;
__constant__ uint64_t c_PaddedMessage80[16]; // padded message (80 bytes + padding) __constant__ uint64_t c_PaddedMessage80[16]; // padded message (80 bytes + padding)