Further ccomplextest hacks
For visual c++ compilation when using creal and cimag.
This commit is contained in:
parent
fd592fdc3b
commit
04e49b174b
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue