summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNagy-Egri Máté Ferenc <mate@streamhpc.com>2022-09-03 01:36:20 +0200
committerGitHub <noreply@github.com>2022-09-02 16:36:20 -0700
commit68d98613113259dbcd4c05b2039bb758766bf2ac (patch)
tree54505c8964284825cfdb13044a742dbb3ca981d0
parent7176bf830c94fada03be794fe1eac49ed3f0386f (diff)
downloadOpenCL-Headers-68d98613113259dbcd4c05b2039bb758766bf2ac.tar.gz
Disable anon struct warnings (#200)
-rw-r--r--CL/cl_platform.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/CL/cl_platform.h b/CL/cl_platform.h
index 4f6444e..e7a0d6f 100644
--- a/CL/cl_platform.h
+++ b/CL/cl_platform.h
@@ -516,6 +516,9 @@ typedef unsigned int cl_GLenum;
#elif defined(__GNUC__) && ! defined(__STRICT_ANSI__)
#define __CL_HAS_ANON_STRUCT__ 1
#define __CL_ANON_STRUCT__ __extension__
+#elif defined(__clang__)
+#define __CL_HAS_ANON_STRUCT__ 1
+#define __CL_ANON_STRUCT__ __extension__
#else
#define __CL_HAS_ANON_STRUCT__ 0
#define __CL_ANON_STRUCT__