Skip to content

Commit 0674fa9

Browse files
committed
gh-137058: Update C23 standard version check in pyport.h
1 parent d658b90 commit 0674fa9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Include/pyport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
// to prevent C++ compiler warnings. On C23 and newer and on C++11 and newer,
5151
// _Py_NULL is defined as nullptr.
5252
#if !defined(_MSC_VER) && \
53-
((defined (__STDC_VERSION__) && __STDC_VERSION__ > 201710L) \
53+
((defined (__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) \
5454
|| (defined(__cplusplus) && __cplusplus >= 201103))
5555
# define _Py_NULL nullptr
5656
#else

0 commit comments

Comments
 (0)