X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Flibm%2Fcomplex.h;h=2fc2284d63e8663df356a6da0826edb9e6063e0c;hb=ef7a4c06206976de7ef2e974267407347ddb75a4;hp=b8a16a8b4bfb77384f2f9e38c75790ada32a9e22;hpb=438e3b5ac335f69a620d2db738626fca1d0c2980;p=mono.git diff --git a/support/libm/complex.h b/support/libm/complex.h index b8a16a8b4bf..2fc2284d63e 100644 --- a/support/libm/complex.h +++ b/support/libm/complex.h @@ -29,8 +29,14 @@ #ifndef _COMPLEX_H #define _COMPLEX_H +#include #include +#if HOST_ANDROID && !defined(__pure2) +/* NDK unified headers don't define __pure2 */ +#define __pure2 __attribute__((__const__)) +#endif + #ifdef __GNUC__ #if __STDC_VERSION__ < 199901 #define _Complex __complex__