| … | … | @@ -45,6 +45,11 @@ |
| 45 | 45 | #include <stdarg.h> |
| 46 | 46 | #include <string.h> |
| 47 | 47 | // |
| 48 | #ifndef UINT_TYPE | |
| 49 | #define UINT_TYPE | |
| 50 | typedef unsigned int uint; | |
| 51 | #endif | |
| 52 | // | |
| 48 | 53 | #ifdef HAVE_OPENCL |
| 49 | 54 | #ifdef __APPLE_CC__ |
| 50 | 55 | #include <OpenCL/OpenCL.h> |
| … | … | @@ -55,6 +55,11 @@ DELAY(#include <stdio.h>) |
| 55 | 55 | DELAY(#include <stdarg.h>) |
| 56 | 56 | DELAY(#include <string.h>) |
| 57 | 57 | // |
| 58 | DELAY(#ifndef UINT_TYPE) | |
| 59 | DELAY(#define UINT_TYPE) | |
| 60 | typedef unsigned int uint; | |
| 61 | DELAY(#endif) | |
| 62 | // | |
| 58 | 63 | DELAY(#ifdef HAVE_OPENCL) |
| 59 | 64 | DELAY(#ifdef __APPLE_CC__) |
| 60 | 65 | DELAY(#include <OpenCL/OpenCL.h>) |
| … | … | @@ -57,7 +57,10 @@ extern "C" |
| 57 | 57 | { |
| 58 | 58 | #endif |
| 59 | 59 | |
| 60 | #ifndef UINT_TYPE | |
| 61 | #define UINT_TYPE | |
| 60 | 62 | typedef unsigned int uint; |
| 63 | #endif | |
| 61 | 64 | typedef unsigned long ulong; |
| 62 | 65 | |
| 63 | 66 | int *compact_hash_init(int ncells, uint isize, uint jsize, uint report_level); |