Prepare Mono for Android NDK with unified headers (#5680)
[mono.git] / support / libm / complex.h
index b8a16a8b4bfb77384f2f9e38c75790ada32a9e22..2fc2284d63e8663df356a6da0826edb9e6063e0c 100644 (file)
 #ifndef _COMPLEX_H
 #define        _COMPLEX_H
 
+#include <config.h>
 #include <sys/cdefs.h>
 
+#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__