From: Robert Bradshaw Date: Thu, 21 Jan 2010 21:16:24 +0000 (-0800) Subject: solaris + gcc fix X-Git-Tag: 0.12.1~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5553fc00ea78d0d6b618d5f5111bb7d6473cfa97;p=cython.git solaris + gcc fix --- diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index e20f91cb..d0f6f0a0 100644 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -1063,6 +1063,11 @@ proto=""" #include #endif #endif + +#if CYTHON_CCOMPLEX && !defined(__cplusplus) && defined(__sun__) && defined(__GNUC__) + #undef _Complex_I + #define _Complex_I 1.0fj +#endif """) complex_real_imag_utility_code = UtilityCode( @@ -1122,9 +1127,9 @@ impl=""" #else static INLINE %(type)s %(type_name)s_from_parts(%(real_type)s x, %(real_type)s y) { %(type)s z; - z.real = x; - z.imag = y; - return z; + z.real = x; + z.imag = y; + return z; } #endif """)