Accepting request 357131 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/357131
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Cython?expand=0&rev=29
This commit is contained in:
2016-02-09 12:30:56 +00:00
committed by Git OBS Bridge
parent df2529eac0
commit 53195031a7
5 changed files with 180 additions and 6 deletions

11
python-Cython-c++11.patch Normal file
View File

@@ -0,0 +1,11 @@
--- 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