diff options
author | Ross Burton <ross.burton@intel.com> | 2014-01-14 15:19:29 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-14 17:03:56 +0000 |
commit | 4ec992938a65eb656539c3f5974100b04f752273 (patch) | |
tree | 7bd5b84708d0cea2e384e68506451abbe9b9d65d /meta/recipes-devtools/python/python-numpy/i586/numpyconfig.h | |
parent | 7282635343e0ccf7a82ffdb35905bdc2db6093d3 (diff) | |
download | poky-4ec992938a65eb656539c3f5974100b04f752273.tar.gz |
python-numpy: add (from meta-oe)
python-numpy is needed for Piglit. This recipe is taken directly from meta-oe.
(From OE-Core rev: 9bf355cceaec6ebacdcbcc35f9713ff73e1c85da)
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/i586/numpyconfig.h')
-rw-r--r-- | meta/recipes-devtools/python/python-numpy/i586/numpyconfig.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-numpy/i586/numpyconfig.h b/meta/recipes-devtools/python/python-numpy/i586/numpyconfig.h new file mode 100644 index 0000000000..ff7938cd96 --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/i586/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 | ||