2016-02-07 00:57:11 +03:00
|
|
|
#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__
|
2016-04-19 20:50:42 +03:00
|
|
|
#undef NPY_SIZEOF_LONG
|
|
|
|
#undef NPY_SIZEOF_PY_INTPTR_T
|
2016-02-07 00:57:11 +03:00
|
|
|
|
2016-04-19 20:50:42 +03:00
|
|
|
#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
|
2016-02-07 00:57:11 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* To help with the NPY_NO_DEPRECATED_API macro, we include API version
|
|
|
|
* numbers for specific versions of NumPy. To exclude all API that was
|
|
|
|
* deprecated as of 1.7, add the following before #including any NumPy
|
|
|
|
* headers:
|
|
|
|
* #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
|
|
|
|
*/
|
|
|
|
#define NPY_1_7_API_VERSION 0x00000007
|
|
|
|
|
|
|
|
#endif
|