projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prepare Mono for Android NDK with unified headers (#5680)
[mono.git]
/
support
/
libm
/
complex.h
diff --git
a/support/libm/complex.h
b/support/libm/complex.h
index b8a16a8b4bfb77384f2f9e38c75790ada32a9e22..2fc2284d63e8663df356a6da0826edb9e6063e0c 100644
(file)
--- a/
support/libm/complex.h
+++ b/
support/libm/complex.h
@@
-29,8
+29,14
@@
#ifndef _COMPLEX_H
#define _COMPLEX_H
#ifndef _COMPLEX_H
#define _COMPLEX_H
+#include <config.h>
#include <sys/cdefs.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__
#ifdef __GNUC__
#if __STDC_VERSION__ < 199901
#define _Complex __complex__