summaryrefslogtreecommitdiff
path: root/numpy/f2py/src/test/foomodule.c
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/src/test/foomodule.c
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/src/test/foomodule.c')
-rw-r--r--numpy/f2py/src/test/foomodule.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/f2py/src/test/foomodule.c b/numpy/f2py/src/test/foomodule.c
index 88ec62440..00a48f4c0 100644
--- a/numpy/f2py/src/test/foomodule.c
+++ b/numpy/f2py/src/test/foomodule.c
@@ -9,7 +9,9 @@
extern "C" {
#endif
-#include "Python.h"
+#define PY_SSIZE_T_CLEAN
+#include <Python.h>
+
#include "fortranobject.h"
static PyObject *foo_error;