Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Indicate blank lines are part of the comment
  • Loading branch information
jmroot committed Nov 21, 2022
commit 08106d79788005eee02574639b5f64182ce13627
8 changes: 4 additions & 4 deletions Include/pymacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
// defined, <sys/cdefs.h> disables C11 support and <assert.h> does not define
// the static_assert() macro.
// https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255290

//
// macOS <= 10.10 doesn't define static_assert in assert.h at all despite
// having C11 compiler support.

//
// static_assert is defined in glibc from version 2.16. Compiler support for
// the C11 _Static_assert keyword is in gcc >= 4.6.

//
// MSVC makes static_assert a keyword, contrary to the C standard.

//
// In C++ 11 static_assert is a keyword, redefining is undefined behaviour.
Comment thread
jmroot marked this conversation as resolved.
Outdated
#if !defined(static_assert) && !defined(_MSC_VER) \
&& !(defined(__cplusplus) && __cplusplus >= 201103L)
Expand Down