summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authory-novikov <ynovikov@chromium.org>2021-10-06 17:35:29 -0400
committerGitHub <noreply@github.com>2021-10-06 14:35:29 -0700
commit1aa1139b58a515877a923cce6b254e09d1b2fb2c (patch)
tree9cd2549f67a0dad040cf13e44939edda9375f219
parent835558e45c41df1345ee514e94a839c31923c1b2 (diff)
downloadOpenCL-Headers-1aa1139b58a515877a923cce6b254e09d1b2fb2c.tar.gz
Fix condition for warning 4201 pop (#179)
Matching the condition for push. New clang compiler version complains that the warning can be popped without being pushed first.
-rw-r--r--CL/cl_platform.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/CL/cl_platform.h b/CL/cl_platform.h
index 8ae655d..68544bb 100644
--- a/CL/cl_platform.h
+++ b/CL/cl_platform.h
@@ -1395,7 +1395,9 @@ typedef union
}
#endif
-#if defined( _WIN32) && defined(_MSC_VER) && ! defined(__STDC__)
+#if !defined(__cplusplus) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
+#elif defined( __GNUC__) && ! defined( __STRICT_ANSI__ )
+#elif defined( _WIN32) && defined(_MSC_VER) && ! defined(__STDC__)
#if _MSC_VER >=1500
#pragma warning( pop )
#endif