>From 210d11d8ecfc6c59ae12f6f2efbd948777d5bda0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claudio=20Andr=C3=A9?= Date: Fri, 1 Mar 2013 00:54:20 -0300 Subject: [PATCH 4/5] Use default uint64_t definition (stdint.h) for non-OpenCL code. --- src/opencl_sha256.h | 10 ++++++---- src/opencl_sha512.h | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/opencl_sha256.h b/src/opencl_sha256.h index 9c96a26..f3b180d 100644 --- a/src/opencl_sha256.h +++ b/src/opencl_sha256.h @@ -13,10 +13,12 @@ #define OPENCL_SHA256_H //Type names definition. -#define uint8_t unsigned char -#define uint16_t unsigned short -#define uint32_t unsigned int -#define uint64_t unsigned long //Tip: unsigned long long int failed on compile (AMD). +#ifdef _OPENCL_COMPILER + #define uint8_t unsigned char + #define uint16_t unsigned short + #define uint32_t unsigned int + #define uint64_t unsigned long //Tip: unsigned long long int failed on compile (AMD). +#endif #define MIN_KEYS_PER_CRYPT 1 #define MAX_KEYS_PER_CRYPT 1 diff --git a/src/opencl_sha512.h b/src/opencl_sha512.h index f9129ed..bd122ee 100644 --- a/src/opencl_sha512.h +++ b/src/opencl_sha512.h @@ -13,10 +13,12 @@ #define OPENCL_SHA512_H //Type names definition. -#define uint8_t unsigned char -#define uint16_t unsigned short -#define uint32_t unsigned int -#define uint64_t unsigned long //Tip: unsigned long long int failed on compile (AMD). +#ifdef _OPENCL_COMPILER + #define uint8_t unsigned char + #define uint16_t unsigned short + #define uint32_t unsigned int + #define uint64_t unsigned long //Tip: unsigned long long int failed on compile (AMD). +#endif #define MIN_KEYS_PER_CRYPT 1 #define MAX_KEYS_PER_CRYPT 1 -- 1.7.9.5