From: Robert Bradshaw Date: Fri, 15 Jan 2010 05:06:13 +0000 (-0800) Subject: Complex define cleanup. X-Git-Tag: 0.12.1~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ce9b57032ed3f580aa82a4a8d3187e2187f23b5a;p=cython.git Complex define cleanup. --- diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index 6d7d608a..e20f91cb 100644 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -1106,15 +1106,7 @@ proto=""" complex_from_parts_utility_code = UtilityCode( proto_block='utility_code_proto', proto=""" -#if CYTHON_CCOMPLEX - #ifdef __cplusplus - static INLINE %(type)s %(type_name)s_from_parts(%(real_type)s, %(real_type)s); - #else - static INLINE %(type)s %(type_name)s_from_parts(%(real_type)s, %(real_type)s); - #endif -#else - static INLINE %(type)s %(type_name)s_from_parts(%(real_type)s, %(real_type)s); -#endif +static INLINE %(type)s %(type_name)s_from_parts(%(real_type)s, %(real_type)s); """, impl=""" #if CYTHON_CCOMPLEX