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
Update Include/pymacro.h
  • Loading branch information
vstinner authored Dec 5, 2022
commit a5ceb00aae327b2196c5de74c8afbc2b161db16c
2 changes: 1 addition & 1 deletion Include/pymacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//
// In C++ 11 static_assert is a keyword, redefining is undefined behaviour.
// So only define if building as C (if __STDC_VERSION__ is defined), not C++.
#if !defined(static_assert) && defined(__GNUC__) \
#if !defined(static_assert) && (defined(__GNUC__) || defined(__clang__)) \
&& defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
# define static_assert _Static_assert
#endif
Expand Down