From 8f1fbffd2b04d54e1832cef74070f18890993d76 Mon Sep 17 00:00:00 2001 From: dalcinl Date: Sun, 2 May 2010 22:22:36 -0300 Subject: [PATCH] MSVC: quick fix for int complex test failing in C++, do not use std::complex --- tests/run/complex_int_T446.pyx | 3 +++ tests/run/complex_int_T446_fix.h | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 tests/run/complex_int_T446_fix.h 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 -- 2.26.2