diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2016-05-12 16:43:36 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-01 08:04:12 +0100 |
commit | 9bffe2f9fb4ce6c0b265f27e5b484fbe076c6349 (patch) | |
tree | 96a587dd15a097b65fed2575b6ea4352ade6ddee /meta/recipes-devtools/python-numpy/files/x86/numpyconfig.h | |
parent | 3e171c89e929a09e4d511a8f235dd90b7cf0d463 (diff) | |
download | openembedded-core-9bffe2f9fb4ce6c0b265f27e5b484fbe076c6349.tar.gz openembedded-core-9bffe2f9fb4ce6c0b265f27e5b484fbe076c6349.tar.bz2 openembedded-core-9bffe2f9fb4ce6c0b265f27e5b484fbe076c6349.zip |
python-numpy: move recipe to own directory
This is done so that patches can be shared with python3-numpy
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/python-numpy/files/x86/numpyconfig.h')
-rw-r--r-- | meta/recipes-devtools/python-numpy/files/x86/numpyconfig.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python-numpy/files/x86/numpyconfig.h b/meta/recipes-devtools/python-numpy/files/x86/numpyconfig.h new file mode 100644 index 0000000000..ff7938cd96 --- /dev/null +++ b/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 |