Skip to content

Commit aa60f5e

Browse files
committed
GPU OpenCL: Use typedef instead of define
1 parent ce427f7 commit aa60f5e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

GPU/GPUTracking/Base/opencl-common/GPUReconstructionOCL.cl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@
5858
#define nullptr NULL
5959
#define NULL (0x0)
6060
#endif
61-
#define uint64_t unsigned long
62-
#define uint32_t unsigned int
63-
#define uint16_t unsigned short
64-
#define uint8_t unsigned char
65-
#define int64_t long
66-
#define int32_t int
67-
#define int16_t short
68-
#define int8_t signed char
61+
typedef unsigned long uint64_t;
62+
typedef unsigned int uint32_t;
63+
typedef unsigned short uint16_t;
64+
typedef unsigned char uint8_t;
65+
typedef signed long int64_t;
66+
typedef signed int int32_t;
67+
typedef signed short int16_t;
68+
typedef signed char int8_t;
6969

7070
// Disable assertions since they produce errors in GPU Code
7171
#ifdef assert

0 commit comments

Comments
 (0)