summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/src/dummymodule.c2
-rw-r--r--numpy/core/src/npymath/halffloat.c1
-rw-r--r--numpy/core/src/npysort/sort.c.src2
3 files changed, 5 insertions, 0 deletions
diff --git a/numpy/core/src/dummymodule.c b/numpy/core/src/dummymodule.c
index b4eb735d4..595f84d71 100644
--- a/numpy/core/src/dummymodule.c
+++ b/numpy/core/src/dummymodule.c
@@ -6,6 +6,8 @@
* configuration files before the libraries are made.
*/
+#define NPY_NO_DEPRECATED_API
+
#include <Python.h>
#include <numpy/npy_3kcompat.h>
diff --git a/numpy/core/src/npymath/halffloat.c b/numpy/core/src/npymath/halffloat.c
index a49e3b02e..cea9a3bd7 100644
--- a/numpy/core/src/npymath/halffloat.c
+++ b/numpy/core/src/npymath/halffloat.c
@@ -1,3 +1,4 @@
+#define NPY_NO_DEPRECATED_API
#include "numpy/halffloat.h"
/*
diff --git a/numpy/core/src/npysort/sort.c.src b/numpy/core/src/npysort/sort.c.src
index 24f25db8a..e42597384 100644
--- a/numpy/core/src/npysort/sort.c.src
+++ b/numpy/core/src/npysort/sort.c.src
@@ -26,6 +26,8 @@
* The heap sort is included for completeness.
*/
+#define NPY_NO_DEPRECATED_API
+
#include <stdlib.h>
#include "npy_sort.h"
#include "npysort_common.h"