forked from pool/python-Cython
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
This commit is contained in:
committed by
Git OBS Bridge
parent
5608cb2d78
commit
01513e7952
11
python-Cython-c++11.patch
Normal file
11
python-Cython-c++11.patch
Normal 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
|
Reference in New Issue
Block a user