mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-29 11:26:28 +03:00
20 lines
567 B
C
20 lines
567 B
C
/*
|
|
* This include file is provided for inclusion in Cython *.pyd files where
|
|
* one would like to define the NPY_NO_DEPRECATED_API macro. It can be
|
|
* included by
|
|
*
|
|
* cdef extern from "npy_no_deprecated_api.h": pass
|
|
*
|
|
*/
|
|
#ifndef NPY_NO_DEPRECATED_API
|
|
|
|
/* put this check here since there may be multiple includes in C extensions. */
|
|
#if defined(NDARRAYTYPES_H) || defined(_NPY_DEPRECATED_API_H) || \
|
|
defined(OLD_DEFINES_H)
|
|
#error "npy_no_deprecated_api.h" must be first among numpy includes.
|
|
#else
|
|
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
|
|
#endif
|
|
|
|
#endif
|