Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion Include/pymacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// behaviour. So only define if building as C, not C++ (if __cplusplus is
// not defined), and only for C11-17.
#if !defined(static_assert) && (defined(__GNUC__) || defined(__clang__)) \
&& !defined(_Py_STDC_VERSION) \
&& defined(_Py_STDC_VERSION) \
&& _Py_STDC_VERSION >= 201112L && _Py_STDC_VERSION <= 201710L
# define static_assert _Static_assert
#endif
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix C11-C17 builds with old C library headers that do not define
``static_assert``, including glibc versions older than 2.16.
Loading