mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
gh-137058: Update C23 standard version check in pyport.h (#137127)
Use `__STDC_VERSION__ >= 202311L` instead of `__STDC_VERSION__ > 201710L`.
This commit is contained in:
parent
9cbf46d992
commit
cfd6da849a
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@
|
|||
// to prevent C++ compiler warnings. On C23 and newer and on C++11 and newer,
|
||||
// _Py_NULL is defined as nullptr.
|
||||
#if !defined(_MSC_VER) && \
|
||||
((defined (__STDC_VERSION__) && __STDC_VERSION__ > 201710L) \
|
||||
((defined (__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) \
|
||||
|| (defined(__cplusplus) && __cplusplus >= 201103))
|
||||
# define _Py_NULL nullptr
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue