summaryrefslogtreecommitdiffstats
path: root/external/poky/meta/recipes-devtools/python-numpy/files/x86/numpyconfig.h
diff options
context:
space:
mode:
authorToshikazuOhiwa <toshikazu_ohiwa@mail.toyota.co.jp>2020-03-30 09:24:26 +0900
committerToshikazuOhiwa <toshikazu_ohiwa@mail.toyota.co.jp>2020-03-30 09:24:26 +0900
commit5b80bfd7bffd4c20d80b7c70a7130529e9a755dd (patch)
treeb4bb18dcd1487dbf1ea8127e5671b7bb2eded033 /external/poky/meta/recipes-devtools/python-numpy/files/x86/numpyconfig.h
parent706ad73eb02caf8532deaf5d38995bd258725cb8 (diff)
agl-basesystem
Diffstat (limited to 'external/poky/meta/recipes-devtools/python-numpy/files/x86/numpyconfig.h')
-rw-r--r--external/poky/meta/recipes-devtools/python-numpy/files/x86/numpyconfig.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/external/poky/meta/recipes-devtools/python-numpy/files/x86/numpyconfig.h b/external/poky/meta/recipes-devtools/python-numpy/files/x86/numpyconfig.h
new file mode 100644
index 00000000..ff7938cd
--- /dev/null
+++ b/external/poky/meta/recipes-devtools/python-numpy/files/x86/numpyconfig.h
@@ -0,0 +1,24 @@
+#ifndef _NPY_NUMPYCONFIG_H_
+#define _NPY_NUMPYCONFIG_H_
+
+#include "_numpyconfig.h"
+
+/*
+ * On Mac OS X, because there is only one configuration stage for all the archs
+ * in universal builds, any macro which depends on the arch needs to be
+ * harcoded
+ */
+#ifdef __APPLE__
+ #undef NPY_SIZEOF_LONG
+ #undef NPY_SIZEOF_PY_INTPTR_T
+
+ #ifdef __LP64__
+ #define NPY_SIZEOF_LONG 8
+ #define NPY_SIZEOF_PY_INTPTR_T 8
+ #else
+ #define NPY_SIZEOF_LONG 4
+ #define NPY_SIZEOF_PY_INTPTR_T 4
+ #endif
+#endif
+
+#endif