]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-137058: Update C23 standard version check in `pyport.h` (#137127)
authorAbdul <abdulrasheedibrahim47@gmail.com>
Sun, 27 Jul 2025 07:47:21 +0000 (08:47 +0100)
committerGitHub <noreply@github.com>
Sun, 27 Jul 2025 07:47:21 +0000 (09:47 +0200)
Use `__STDC_VERSION__ >= 202311L` instead of `__STDC_VERSION__ > 201710L`.

Include/pyport.h

index 89829373be2ca2bd5a55fbda2a42c0ed5748dda6..62db8d07701d1d285b42d9df63626d85f863e351 100644 (file)
@@ -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