We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4319884 commit 6ed9be1Copy full SHA for 6ed9be1
Include/pyport.h
@@ -49,8 +49,9 @@
49
// Static inline functions should use _Py_NULL rather than using directly NULL
50
// to prevent C++ compiler warnings. On C23 and newer and on C++11 and newer,
51
// _Py_NULL is defined as nullptr.
52
-#if (defined (__STDC_VERSION__) && __STDC_VERSION__ > 201710L) \
53
- || (defined(__cplusplus) && __cplusplus >= 201103)
+#if !defined(_MSC_VER) && \
+ ((defined (__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) \
54
+ || (defined(__cplusplus) && __cplusplus >= 201103))
55
# define _Py_NULL nullptr
56
#else
57
# define _Py_NULL NULL
0 commit comments