Commit 5553fc00 authored by Robert Bradshaw's avatar Robert Bradshaw

solaris + gcc fix

parent ce9b5703
...@@ -1063,6 +1063,11 @@ proto=""" ...@@ -1063,6 +1063,11 @@ proto="""
#include <complex.h> #include <complex.h>
#endif #endif
#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( complex_real_imag_utility_code = UtilityCode(
...@@ -1122,9 +1127,9 @@ impl=""" ...@@ -1122,9 +1127,9 @@ impl="""
#else #else
static INLINE %(type)s %(type_name)s_from_parts(%(real_type)s x, %(real_type)s y) { static INLINE %(type)s %(type_name)s_from_parts(%(real_type)s x, %(real_type)s y) {
%(type)s z; %(type)s z;
z.real = x; z.real = x;
z.imag = y; z.imag = y;
return z; return z;
} }
#endif #endif
""") """)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment