From: dalcinl Date: Mon, 3 May 2010 01:22:36 +0000 (-0300) Subject: MSVC: quick fix for int complex test failing in C++, do not use std::complex X-Git-Tag: 0.13.beta0~113 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8f1fbffd2b04d54e1832cef74070f18890993d76;p=cython.git MSVC: quick fix for int complex test failing in C++, do not use std::complex --- diff --git a/tests/run/complex_int_T446.pyx b/tests/run/complex_int_T446.pyx index c9ee5519..f2f2ef02 100644 --- a/tests/run/complex_int_T446.pyx +++ b/tests/run/complex_int_T446.pyx @@ -1,5 +1,8 @@ import cython +cdef extern from "complex_int_T446_fix.h": + pass + def test_arith(int complex a, int complex b): """ >>> test_arith(4, 2) diff --git a/tests/run/complex_int_T446_fix.h b/tests/run/complex_int_T446_fix.h new file mode 100644 index 00000000..c6d11d15 --- /dev/null +++ b/tests/run/complex_int_T446_fix.h @@ -0,0 +1,3 @@ +#if defined _MSC_VER && defined __cplusplus +#define CYTHON_CCOMPLEX 0 +#endif