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
|
#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199001L
|
||||||
#define HAS_C99_COMPLEX_FOR_TESTING 1
|
#define HAS_C99_COMPLEX_FOR_TESTING 1
|
||||||
#else
|
#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 */
|
/* some pre c99 compilers (gcc-4.x) don't define _Complex but do define complex */
|
||||||
#define _Complex
|
#define _Complex
|
||||||
#if !defined(complex)
|
#if !defined(complex)
|
||||||
|
|
@ -16,6 +16,8 @@
|
||||||
#endif
|
#endif
|
||||||
#define conj
|
#define conj
|
||||||
#define conjf
|
#define conjf
|
||||||
|
#define creal
|
||||||
|
#define cimag
|
||||||
#if defined(I)
|
#if defined(I)
|
||||||
# undef I
|
# undef I
|
||||||
# define I 1
|
# define I 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue