lbalhar / rpms / Cython

Forked from rpms/Cython 4 years ago
Clone
ebfa79f
--- Cython-0.23/Cython/Compiler/PyrexTypes.py.orig	2016-02-05 07:56:42.411235179 -0500
ebfa79f
+++ Cython-0.23/Cython/Compiler/PyrexTypes.py	2016-02-05 07:59:35.926182417 -0500
ebfa79f
@@ -1960,7 +1960,8 @@
ebfa79f
     #define __Pyx_CIMAG(z) ((z).imag)
ebfa79f
 #endif
ebfa79f
 
ebfa79f
-#if (defined(_WIN32) || defined(__clang__)) && defined(__cplusplus) && CYTHON_CCOMPLEX
ebfa79f
+#if defined(__cplusplus) && !CYTHON_COMPLEX \
ebfa79f
+        && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && GCC_VERSION >= 40400) || __cplusplus >= 201103)
ebfa79f
     #define __Pyx_SET_CREAL(z,x) ((z).real(x))
ebfa79f
     #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
ebfa79f
 #else