npy_no_deprecated_api.h 567 B

12345678910111213141516171819
  1. /*
  2. * This include file is provided for inclusion in Cython *.pyd files where
  3. * one would like to define the NPY_NO_DEPRECATED_API macro. It can be
  4. * included by
  5. *
  6. * cdef extern from "npy_no_deprecated_api.h": pass
  7. *
  8. */
  9. #ifndef NPY_NO_DEPRECATED_API
  10. /* put this check here since there may be multiple includes in C extensions. */
  11. #if defined(NDARRAYTYPES_H) || defined(_NPY_DEPRECATED_API_H) || \
  12. defined(OLD_DEFINES_H)
  13. #error "npy_no_deprecated_api.h" must be first among numpy includes.
  14. #else
  15. #define NPY_NO_DEPRECATED_API NPY_API_VERSION
  16. #endif
  17. #endif