From: Abdul Date: Sun, 27 Jul 2025 07:47:21 +0000 (+0100) Subject: gh-137058: Update C23 standard version check in `pyport.h` (#137127) X-Git-Tag: v3.15.0a1~842 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cfd6da849a3c40904cddd23ae1700605877673fb;p=thirdparty%2FPython%2Fcpython.git gh-137058: Update C23 standard version check in `pyport.h` (#137127) Use `__STDC_VERSION__ >= 202311L` instead of `__STDC_VERSION__ > 201710L`. --- diff --git a/Include/pyport.h b/Include/pyport.h index 89829373be2c..62db8d07701d 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -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