From 04e49b174be7b917695f33568082cca76f79f83c Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 10 Oct 2020 11:10:29 +0100 Subject: Further ccomplextest hacks For visual c++ compilation when using creal and cimag. --- Examples/test-suite/ccomplextest.i | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Examples') 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 -- cgit v1.2.1