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 57db3b8 commit 91389b5Copy full SHA for 91389b5
Include/pymacro.h
@@ -46,7 +46,7 @@
46
/* Argument must be a char or an int in [-128, 127] or [0, 255]. */
47
#define Py_CHARMASK(c) ((unsigned char)((c) & 0xff))
48
49
-#if __STDC_VERSION__ >= 201112L
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
50
# define Py_BUILD_ASSERT_EXPR(cond) \
51
(sizeof(struct { _Static_assert(cond, #cond); int dummy; }), \
52
0)
@@ -68,7 +68,7 @@
68
(sizeof(char [1 - 2*!(cond)]) - 1)
69
#endif
70
71
72
// Use static_assert() on C11 and newer
73
# define Py_BUILD_ASSERT(cond) static_assert((cond), #cond)
74
#else
0 commit comments