[Libclc-dev] Do no circularly define NULL

Jeroen Ketema via Libclc-dev libclc-dev at lists.llvm.org
Sun Oct 1 10:17:37 PDT 2017


--- generic/include/clc/clcmacros.h	(revision 312402)
+++ generic/include/clc/clcmacros.h	(working copy)
@@ -9,7 +9,7 @@
 #define CLC_VERSION_1_2 120
 #endif
 
-#define NULL ((void*)NULL)
+#define NULL ((void*)0)
 
 #define __kernel_exec(X, typen) __kernel \
                                 __attribute__((work_group_size_hint(X, 1, 1))) \



More information about the Libclc-dev mailing list