cython-devel
changeset 2808:ed2ba011aa3c
solaris + gcc fix
| author | Robert Bradshaw <robertwb@math.washington.edu> |
|---|---|
| date | Thu Jan 21 13:16:24 2010 -0800 (2 years ago) |
| parents | 6a2538923399 |
| children | d0b5d678cb9c |
| files | Cython/Compiler/PyrexTypes.py |
line diff
1.1 --- a/Cython/Compiler/PyrexTypes.py Thu Jan 14 21:06:13 2010 -0800
1.2 +++ b/Cython/Compiler/PyrexTypes.py Thu Jan 21 13:16:24 2010 -0800
1.3 @@ -1063,6 +1063,11 @@
1.4 #include <complex.h>
1.5 #endif
1.6 #endif
1.7 +
1.8 +#if CYTHON_CCOMPLEX && !defined(__cplusplus) && defined(__sun__) && defined(__GNUC__)
1.9 + #undef _Complex_I
1.10 + #define _Complex_I 1.0fj
1.11 +#endif
1.12 """)
1.13
1.14 complex_real_imag_utility_code = UtilityCode(
1.15 @@ -1122,9 +1127,9 @@
1.16 #else
1.17 static INLINE %(type)s %(type_name)s_from_parts(%(real_type)s x, %(real_type)s y) {
1.18 %(type)s z;
1.19 - z.real = x;
1.20 - z.imag = y;
1.21 - return z;
1.22 + z.real = x;
1.23 + z.imag = y;
1.24 + return z;
1.25 }
1.26 #endif
1.27 """)
