X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fcomplex.h;h=6e7ac5ed5ec7867db01f6d156a5a9a52b7e3250b;hb=d7cc1957de74235bd2a84c1ef26ecab2368f57e4;hp=d4cc9ea990bd7ba5b34a23ddda34db0c06f1fc98;hpb=133919785898ce67b8fa8f4b3722d7d637a8e85b;p=pdclib.old 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 )