X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Fcomplex.h;h=6e7ac5ed5ec7867db01f6d156a5a9a52b7e3250b;hp=d4cc9ea990bd7ba5b34a23ddda34db0c06f1fc98;hb=70f1c6f7c9d515ef426da68973511f46de57005a;hpb=54a2869bd13882c5e3b2417569709cd490cfcf3f diff --git a/includes/complex.h b/includes/complex.h index d4cc9ea..6e7ac5e 100644 --- a/includes/complex.h +++ b/includes/complex.h @@ -10,6 +10,8 @@ #ifndef __COMPLEX_H #define __COMPLEX_H __COMPLEX_H +#include "personality.h" + // ---------------------------------------------------------------------------- // DEFINES @@ -19,8 +21,9 @@ #define _Complex_I ( const float _Complex ) { 0, 1 } -// TODO: imaginary is only defined if implementation supports _Imaginary. +#ifdef __PERSONALITY_SUPPORTS_IMAGINARY #define imaginary _Imaginary +#endif // __PERSONALITY_SUPPORTS_IMAGINARY #ifdef imaginary #define _Imaginary_I ( ( const float _Imaginary ) 1 )