numpyconfig.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _NPY_NUMPYCONFIG_H_
  2. #define _NPY_NUMPYCONFIG_H_
  3. #include "_numpyconfig.h"
  4. /*
  5. * On Mac OS X, because there is only one configuration stage for all the archs
  6. * in universal builds, any macro which depends on the arch needs to be
  7. * harcoded
  8. */
  9. #ifdef __APPLE__
  10. #undef NPY_SIZEOF_LONG
  11. #undef NPY_SIZEOF_PY_INTPTR_T
  12. #ifdef __LP64__
  13. #define NPY_SIZEOF_LONG 8
  14. #define NPY_SIZEOF_PY_INTPTR_T 8
  15. #else
  16. #define NPY_SIZEOF_LONG 4
  17. #define NPY_SIZEOF_PY_INTPTR_T 4
  18. #endif
  19. #endif
  20. /**
  21. * To help with the NPY_NO_DEPRECATED_API macro, we include API version
  22. * numbers for specific versions of NumPy. To exclude all API that was
  23. * deprecated as of 1.7, add the following before #including any NumPy
  24. * headers:
  25. * #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
  26. */
  27. #define NPY_1_7_API_VERSION 0x00000007
  28. #define NPY_1_8_API_VERSION 0x00000008
  29. #define NPY_1_9_API_VERSION 0x00000008
  30. #define NPY_1_10_API_VERSION 0x00000008
  31. #define NPY_1_11_API_VERSION 0x00000008
  32. #endif