Skip to content

Commit

Permalink
Merge pull request #21786 from rgommers/fix-f2py-deprecation-macro
Browse files Browse the repository at this point in the history
MAINT: fix up use of `NPY_NO_DEPRECATED_API` usage in f2py
  • Loading branch information
charris committed Jun 17, 2022
2 parents a065bf6 + c4694b4 commit 1a424bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion numpy/f2py/src/fortranobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ extern "C" {

#include <Python.h>

#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#ifndef NPY_NO_DEPRECATED_API
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#endif
#ifdef FORTRANOBJECT_C
#define NO_IMPORT_ARRAY
#endif
Expand Down

0 comments on commit 1a424bc

Please sign in to comment.