summaryrefslogtreecommitdiff
path: root/numpy/core/src/dummymodule.c
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2021-09-03 12:27:37 -0600
committerGitHub <noreply@github.com>2021-09-03 12:27:37 -0600
commit410a89ef04a2d3c50dd2dba2ad403c872c3745ac (patch)
treee348d96fffa65e5f5a243ec83b2e4e6ed8d16145 /numpy/core/src/dummymodule.c
parent644c55e04fef551690f2f6ca70099d1297ab5c23 (diff)
parenta3e2b7c46d4c4025f4945e3e3ea207a00a63c499 (diff)
downloadnumpy-410a89ef04a2d3c50dd2dba2ad403c872c3745ac.tar.gz
Merge pull request #19810 from charris/update-some-includes
MAINT: Minor include rationalizations.
Diffstat (limited to 'numpy/core/src/dummymodule.c')
-rw-r--r--numpy/core/src/dummymodule.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/core/src/dummymodule.c b/numpy/core/src/dummymodule.c
index e26875736..a58b48839 100644
--- a/numpy/core/src/dummymodule.c
+++ b/numpy/core/src/dummymodule.c
@@ -4,12 +4,13 @@
* This is a dummy module whose purpose is to get distutils to generate the
* configuration files before the libraries are made.
*/
+#define PY_SSIZE_T_CLEAN
+#include <Python.h>
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define NO_IMPORT_ARRAY
-#include <Python.h>
-#include <npy_pycompat.h>
+#include "npy_pycompat.h"
static struct PyMethodDef methods[] = {
{NULL, NULL, 0, NULL}