There was an error while loading. Please reload this page.
1 parent 21764e4 commit ad65f4dCopy full SHA for ad65f4d
1 file changed
Include/pymacro.h
@@ -107,11 +107,12 @@
107
# endif
108
#endif
109
110
-#if defined(_Py_TYPEOF) && !defined(__cplusplus)
+#if ((defined(__GNUC__) || defined(__clang__)) \
111
+ && defined(_Py_TYPEOF) && !defined(__cplusplus))
112
// Implement Py_MIN(), Py_MAX() and Py_ABS() using _Py_TYPEOF() and
113
// statement expression to only evaluate each argument only once.
114
// It cannot be used in C++: ISO C++ forbids braced-groups within
- // expressions.
115
+ // expressions. Statement expression is a GNU extension.
116
117
/* Minimum value between x and y */
118
# define Py_MIN(x, y) \
0 commit comments