8000
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 a4625d5 commit 8594d2cCopy full SHA for 8594d2c
Include/pyport.h
@@ -49,9 +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(__GNUC__) || defined(__clang__)) && \
53
- (defined (__STDC_VERSION__) && __STDC_VERSION__ > 201710L) \
54
- || (defined(__cplusplus) && __cplusplus >= 201103)
+#if !defined(_MSC_VER) && \
+ ((defined (__STDC_VERSION__) && __STDC_VERSION__ > 201710L) \
+ || (defined(__cplusplus) && __cplusplus >= 201103))
55
# define _Py_NULL nullptr
56
#else
57
# define _Py_NULL NULL
0 commit comments