diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2020-10-10 11:10:29 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2020-10-10 15:02:26 +0100 |
commit | 04e49b174be7b917695f33568082cca76f79f83c (patch) | |
tree | 4b09cfd82b29e1dcbbe966e2f9d0ef1251bb5074 /Examples | |
parent | fd592fdc3b01791eba19ed8eace26b7196d567c8 (diff) | |
download | swig-04e49b174be7b917695f33568082cca76f79f83c.tar.gz |
Further ccomplextest hacks
For visual c++ compilation when using creal and cimag.
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/test-suite/ccomplextest.i | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Examples/test-suite/ccomplextest.i b/Examples/test-suite/ccomplextest.i index 4a2f68ff6..c631dc02e 100644 --- a/Examples/test-suite/ccomplextest.i +++ b/Examples/test-suite/ccomplextest.i @@ -8,7 +8,7 @@ #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199001L #define HAS_C99_COMPLEX_FOR_TESTING 1 #else -/* complex not supported - hack tests to just test plain floating point numbers */ +/* c99 complex not supported - super hack tests to just test plain floating point numbers */ /* some pre c99 compilers (gcc-4.x) don't define _Complex but do define complex */ #define _Complex #if !defined(complex) @@ -16,6 +16,8 @@ #endif #define conj #define conjf +#define creal +#define cimag #if defined(I) # undef I # define I 1 |