python-Cython/python-Cython-c++11.patch
Jan Matejek 01513e7952 Accepting request 356504 from openSUSE:Factory:Staging:Gcc6
- Add python-Cython-c++11.patch to fix complex math testcase compile
  with GCC 6 defaulting to C++14.  (bnc#963974)

OBS-URL: https://build.opensuse.org/request/show/356504
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=65
2016-01-28 13:55:20 +00:00

12 lines
521 B
Diff

--- Cython/Compiler/PyrexTypes.py.orig 2016-01-28 12:06:29.060198431 +0000
+++ Cython/Compiler/PyrexTypes.py 2016-01-28 12:07:24.296842892 +0000
@@ -1930,7 +1930,7 @@
#define __Pyx_CIMAG(z) ((z).imag)
#endif
-#if (defined(_WIN32) || defined(__clang__)) && defined(__cplusplus) && CYTHON_CCOMPLEX
+#if defined(__cplusplus) && (defined(_WIN32) || defined(__clang__) || __cplusplus >= 201103L) && CYTHON_CCOMPLEX
#define __Pyx_SET_CREAL(z,x) ((z).real(x))
#define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
#else