diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2021-09-01 18:22:05 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2021-09-03 10:35:29 -0600 |
commit | a3e2b7c46d4c4025f4945e3e3ea207a00a63c499 (patch) | |
tree | 9d4048f5be195b965b211e603a674da13c7225c6 /numpy/f2py/tests/src/array_from_pyobj | |
parent | c6ac4dab50dad3ee0936fb4b765cf4f441874d33 (diff) | |
download | numpy-a3e2b7c46d4c4025f4945e3e3ea207a00a63c499.tar.gz |
MAIN: Minor include rationalization.
- Replace "Python.h" by <Python.h>
- Replace "structmember.h" by <structmember.h>
- Replace <npy_config> by "npy_config"
- Define PY_SSIZE_T_CLEAN before all Python.h includes in .c files.
Diffstat (limited to 'numpy/f2py/tests/src/array_from_pyobj')
-rw-r--r-- | numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c b/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c index fe21d4b9b..ea47e0555 100644 --- a/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c +++ b/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c @@ -9,7 +9,9 @@ extern "C" { #endif /*********************** See f2py2e/cfuncs.py: includes ***********************/ -#include "Python.h" + +#define PY_SSIZE_T_CLEAN +#include <Python.h> #include "fortranobject.h" #include <math.h> |