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/fft/_pocketfft.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'numpy/fft') diff --git a/numpy/fft/_pocketfft.c b/numpy/fft/_pocketfft.c index ba9995f97..5a4931c01 100644 --- a/numpy/fft/_pocketfft.c +++ b/numpy/fft/_pocketfft.c @@ -9,17 +9,18 @@ * Copyright (C) 2004-2018 Max-Planck-Society * \author Martin Reinecke */ +#define PY_SSIZE_T_CLEAN +#include #define NPY_NO_DEPRECATED_API NPY_API_VERSION - -#include "Python.h" #include "numpy/arrayobject.h" +#include "npy_config.h" + #include #include #include -#include "npy_config.h" #define restrict NPY_RESTRICT #define RALLOC(type,num) \ -- cgit v1.2.1