Skip to content

Commit 361777e

Browse files
committed
guard with __OPENCL_C_VERSION__ >= CL_VERSION_2_0
1 parent 3142337 commit 361777e

File tree

2 files changed

+8
-0
lines changed
  • libclc/generic

2 files changed

+8
-0
lines changed

libclc/generic/include/clc/integer/ctz.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
10+
911
#define __CLC_FUNCTION ctz
1012
#define __CLC_BODY <clc/shared/unary_decl.inc>
1113

1214
#include <clc/integer/gentype.inc>
1315

1416
#undef __CLC_BODY
1517
#undef __CLC_FUNCTION
18+
19+
#endif // __OPENCL_C_VERSION__ >= CL_VERSION_2_0

libclc/generic/lib/integer/ctz.cl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
10+
911
#include <clc/clc.h>
1012
#include <clc/integer/clc_ctz.h>
1113

1214
#define FUNCTION ctz
1315
#define __CLC_BODY <clc/shared/unary_def.inc>
1416

1517
#include <clc/integer/gentype.inc>
18+
19+
#endif // __OPENCL_C_VERSION__ >= CL_VERSION_2_0

0 commit comments

Comments
 (0)