summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-numpy/x86/numpyconfig.h
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2015-06-04 12:24:46 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-08 17:34:06 +0100
commit1f3b403a1c6a7d61b5e34441a4c17c9fe2f7bb4e (patch)
tree1d060af01d46043ea77c89512c3a29fc261c1d4a /meta/recipes-devtools/python/python-numpy/x86/numpyconfig.h
parentba7461402fc42acb5493b196d8acec95b4d1aac6 (diff)
downloadpoky-1f3b403a1c6a7d61b5e34441a4c17c9fe2f7bb4e.tar.gz
python-numpy: use x86 over-ride instead of i586
Support i686 without needing to duplicate the i586 over-ride. (From OE-Core rev: 9206887e7e3c1763438ea2abe2da807d2a61d59a) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python-numpy/x86/numpyconfig.h')
-rw-r--r--meta/recipes-devtools/python/python-numpy/x86/numpyconfig.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-numpy/x86/numpyconfig.h b/meta/recipes-devtools/python/python-numpy/x86/numpyconfig.h
new file mode 100644
index 0000000000..ff7938cd96
--- /dev/null
+++ b/meta/recipes-devtools/python/python-numpy/x86/numpyconfig.h
@@ -0,0 +1,24 @@
1#ifndef _NPY_NUMPYCONFIG_H_
2#define _NPY_NUMPYCONFIG_H_
3
4#include "_numpyconfig.h"
5
6/*
7 * On Mac OS X, because there is only one configuration stage for all the archs
8 * in universal builds, any macro which depends on the arch needs to be
9 * harcoded
10 */
11#ifdef __APPLE__
12 #undef NPY_SIZEOF_LONG
13 #undef NPY_SIZEOF_PY_INTPTR_T
14
15 #ifdef __LP64__
16 #define NPY_SIZEOF_LONG 8
17 #define NPY_SIZEOF_PY_INTPTR_T 8
18 #else
19 #define NPY_SIZEOF_LONG 4
20 #define NPY_SIZEOF_PY_INTPTR_T 4
21 #endif
22#endif
23
24#endif