summaryrefslogtreecommitdiff
path: root/numpy/core/src/dummymodule.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/core/src/dummymodule.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/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}