From 1b1008f319966c1d4c4a6baffe4544e839462dce Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sat, 16 Mar 2013 13:15:55 +0000 Subject: python-numpy: add i586 *config.h files Generated using native compile on FRI2/angstrom Signed-off-by: Koen Kooi Signed-off-by: Martin Jansa --- .../python/python-numpy/i586/numpyconfig.h | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 meta-oe/recipes-devtools/python/python-numpy/i586/numpyconfig.h (limited to 'meta-oe/recipes-devtools/python/python-numpy/i586/numpyconfig.h') diff --git a/meta-oe/recipes-devtools/python/python-numpy/i586/numpyconfig.h b/meta-oe/recipes-devtools/python/python-numpy/i586/numpyconfig.h new file mode 100644 index 0000000000..ff7938cd96 --- /dev/null +++ b/meta-oe/recipes-devtools/python/python-numpy/i586/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 -- cgit v1.2.3-54-g00ecf