There was an error while loading. Please reload this page.
1 parent ae56459 commit dec5373Copy full SHA for dec5373
1 file changed
Include/pyport.h
@@ -545,9 +545,7 @@ extern "C" {
545
// the /Zc:__cplusplus flag is used.
546
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
547
# define _Py_TYPEOF(expr) typeof(expr)
548
-#elif defined(__cplusplus) && __cplusplus >= 201103L
549
-# define _Py_TYPEOF(expr) decltype(expr)
550
-#elif defined(_MSVC_LANG) && _MSVC_LANG >= 201103L
+#elif defined(__cplusplus) && (__cplusplus >= 201103L || _MSVC_LANG >= 201103L)
551
# define _Py_TYPEOF(expr) decltype(expr)
552
#elif defined(__GNUC__) || defined(__clang__) || \
553
(defined(_MSC_VER) && _MSC_VER >= 1939)
0 commit comments