npy_no_deprecated_api.h
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 11 /* put this check here since there may be multiple includes in C extensions. */ 12 #if defined(NUMPY_CORE_INCLUDE_NUMPY_NDARRAYTYPES_H_) || \ 13 defined(NUMPY_CORE_INCLUDE_NUMPY_NPY_DEPRECATED_API_H) || \ 14 defined(NUMPY_CORE_INCLUDE_NUMPY_OLD_DEFINES_H_) 15 #error "npy_no_deprecated_api.h" must be first among numpy includes. 16 #else 17 #define NPY_NO_DEPRECATED_API NPY_API_VERSION 18 #endif 19 20 #endif /* NPY_NO_DEPRECATED_API */