From a3e2b7c46d4c4025f4945e3e3ea207a00a63c499 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Wed, 1 Sep 2021 18:22:05 -0600 Subject: MAIN: Minor include rationalization. - Replace "Python.h" by - Replace "structmember.h" by - Replace by "npy_config" - Define PY_SSIZE_T_CLEAN before all Python.h includes in .c files. --- numpy/f2py/cfuncs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/f2py/cfuncs.py') diff --git a/numpy/f2py/cfuncs.py b/numpy/f2py/cfuncs.py index 714f9a932..8f42b4029 100644 --- a/numpy/f2py/cfuncs.py +++ b/numpy/f2py/cfuncs.py @@ -51,7 +51,7 @@ includes0['math.h'] = '#include ' includes0['string.h'] = '#include ' includes0['setjmp.h'] = '#include ' -includes['Python.h'] = '#include "Python.h"' +includes['Python.h'] = '#include ' needs['arrayobject.h'] = ['Python.h'] includes['arrayobject.h'] = '''#define PY_ARRAY_UNIQUE_SYMBOL PyArray_API #include "arrayobject.h"''' -- cgit v1.2.1