8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08106d7 commit 6c36647Copy full SHA for 6c36647
Include/pymacro.h
@@ -15,8 +15,8 @@
15
// MSVC makes static_assert a keyword, contrary to the C standard.
16
//
17
// In C++ 11 static_assert is a keyword, redefining is undefined behaviour.
18
-#if !defined(static_assert) && !defined(_MSC_VER) \
19
- && !(defined(__cplusplus) && __cplusplus >= 201103L)
+#if !defined(static_assert) && defined(__GNUC__) \
+ && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
20
# define static_assert _Static_assert
21
#endif
22
0 commit comments