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 783604d commit 08106d7Copy full SHA for 08106d7
Include/pymacro.h
@@ -5,15 +5,15 @@
5
// defined, <sys/cdefs.h> disables C11 support and <assert.h> does not define
6
// the static_assert() macro.
7
// https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255290
8
-
+//
9
// macOS <= 10.10 doesn't define static_assert in assert.h at all despite
10
// having C11 compiler support.
11
12
// static_assert is defined in glibc from version 2.16. Compiler support for
13
// the C11 _Static_assert keyword is in gcc >= 4.6.
14
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)
0 commit comments