diff arrayobjectdefs.h @ 108:74f17b2a5d45

Use the latest NumPy API * arrayobjectdefs.h: Include current API headers. * octave_to_python.cc, python_to_octave.cc: Use current NumPy functions and types. * pytave.cc: Fix comments.
author Mike Miller <mtmiller@octave.org>
date Fri, 18 Sep 2015 00:00:09 -0400
parents 0c19ed1ce349
children b12908ffa6df
line wrap: on
line diff
--- a/arrayobjectdefs.h	Tue Apr 28 21:31:10 2015 -0400
+++ b/arrayobjectdefs.h	Fri Sep 18 00:00:09 2015 -0400
@@ -29,11 +29,8 @@
 #endif
 #define PY_ARRAY_UNIQUE_SYMBOL pytave_array_symbol
 #include <Python.h>
-/* We use the oldnumeric.h header files because pytave was originally written
-   for the Numeric array library, which has since then been deprecated.  We use
-   the NumPy compability headers. */
-#include <numpy/oldnumeric.h>
-#include <numpy/old_defines.h>
+#include <numpy/npy_no_deprecated_api.h>
+#include <numpy/arrayobject.h>
 
 /* Emacs
  * Local Variables: