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 1e4cdcf commit 79184abCopy full SHA for 79184ab
Include/pymacro.h
@@ -10,6 +10,14 @@
10
# define static_assert _Static_assert
11
#endif
12
13
+// static_assert is defined in GLIB from version 2.16. Before it requires
14
+// compiler support (gcc >= 4.6) and is called _Static_assert.
15
+#if (defined(__GLIBC__) \
16
+ && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 16)) \
17
+ && !defined(static_assert))
18
+# define static_assert _Static_assert
19
+#endif
20
+
21
/* Minimum value between x and y */
22
#define Py_MIN(x, y) (((x) > (y)) ? (y) : (x))
23
0 commit comments