Skip to content

Commit dec5373

Browse files
committed
Use Chris's suggestion
1 parent ae56459 commit dec5373

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Include/pyport.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,7 @@ extern "C" {
545545
// the /Zc:__cplusplus flag is used.
546546
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
547547
# 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
548+
#elif defined(__cplusplus) && (__cplusplus >= 201103L || _MSVC_LANG >= 201103L)
551549
# define _Py_TYPEOF(expr) decltype(expr)
552550
#elif defined(__GNUC__) || defined(__clang__) || \
553551
(defined(_MSC_VER) && _MSC_VER >= 1939)

0 commit comments

Comments
 (0)