summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wiebe <mwiebe@enthought.com>2011-06-30 17:39:52 -0500
committerCharles Harris <charlesr.harris@gmail.com>2011-07-06 16:24:13 -0600
commit8b506a28bf3c4be6e3b333eab6ec6856a383833d (patch)
tree5692d299004f54ca73289600e1b3dbcaffa40ba8
parent423b1e41fbbd9c110123a2f3a161cb11c79493d6 (diff)
downloadnumpy-8b506a28bf3c4be6e3b333eab6ec6856a383833d.tar.gz
ENH: core: Deprecate some bad namespace-polluting macros
This one handles PyArray_DEFAULT -> NPY_DEFAULT_TYPE and the NPY_* array flags -> NPY_ARRAY_*. The PyArray_DEFAULT vs NPY_DEFAULT confusion was particularly egregious here.
-rw-r--r--numpy/core/src/umath/ufunc_type_resolution.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/src/umath/ufunc_type_resolution.c b/numpy/core/src/umath/ufunc_type_resolution.c
index 0bb57ed15..8eb1f8ddf 100644
--- a/numpy/core/src/umath/ufunc_type_resolution.c
+++ b/numpy/core/src/umath/ufunc_type_resolution.c
@@ -9,6 +9,7 @@
* See LICENSE.txt for the license.
*/
#define _UMATHMODULE
+#define NPY_NO_DEPRECATED_API
#include "Python.h"