numpy 2.0.0
include/numpy/numpyconfig.h
Go to the documentation of this file.
00001 #ifndef _NPY_NUMPYCONFIG_H_
00002 #define _NPY_NUMPYCONFIG_H_
00003 
00004 #include "_numpyconfig.h"
00005 
00006 /* 
00007  * On Mac OS X, because there is only one configuration stage for all the archs
00008  * in universal builds, any macro which depends on the arch needs to be
00009  * harcoded
00010  */
00011 #ifdef __APPLE__
00012         #undef NPY_SIZEOF_LONG
00013         #undef NPY_SIZEOF_PY_INTPTR_T
00014 
00015         #ifdef __LP64__
00016                 #define NPY_SIZEOF_LONG                 8
00017                 #define NPY_SIZEOF_PY_INTPTR_T  8
00018         #else
00019                 #define NPY_SIZEOF_LONG                 4
00020                 #define NPY_SIZEOF_PY_INTPTR_T  4
00021         #endif
00022 #endif
00023 
00024 #endif