https://github.com/python/cpython/commit/cfd6da849a3c40904cddd23ae1700605877673fb commit: cfd6da849a3c40904cddd23ae1700605877673fb branch: main author: Abdul <abdulrasheedibrahi...@gmail.com> committer: picnixz <10796600+picn...@users.noreply.github.com> date: 2025-07-27T09:47:21+02:00 summary:
gh-137058: Update C23 standard version check in `pyport.h` (#137127) Use `__STDC_VERSION__ >= 202311L` instead of `__STDC_VERSION__ > 201710L`. files: M Include/pyport.h diff --git a/Include/pyport.h b/Include/pyport.h index 89829373be2ca2..62db8d07701d1d 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 _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: arch...@mail-archive.com