Complex define cleanup.
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 15 Jan 2010 05:06:13 +0000 (21:06 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 15 Jan 2010 05:06:13 +0000 (21:06 -0800)
Cython/Compiler/PyrexTypes.py

index 6d7d608aa8041f1aea325bf662f7e2f2b4b291e2..e20f91cbe7cbf45a61291442a9663df69b82550b 100644 (file)
@@ -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