summaryrefslogtreecommitdiff
path: root/numpy/f2py/tests/src/array_from_pyobj
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2021-09-01 18:22:05 -0600
committerCharles Harris <charlesr.harris@gmail.com>2021-09-03 10:35:29 -0600
commita3e2b7c46d4c4025f4945e3e3ea207a00a63c499 (patch)
tree9d4048f5be195b965b211e603a674da13c7225c6 /numpy/f2py/tests/src/array_from_pyobj
parentc6ac4dab50dad3ee0936fb4b765cf4f441874d33 (diff)
downloadnumpy-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.c4
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>