diff --git a/include/eigenpy/numpy.hpp b/include/eigenpy/numpy.hpp index 5e4ebbf50225142bda726d78cb97c86c6e59d51c..180c59d0f75cf7f5ee25d79eea358840523aea3a 100644 --- a/include/eigenpy/numpy.hpp +++ b/include/eigenpy/numpy.hpp @@ -35,9 +35,9 @@ namespace eigenpy #if defined _WIN32 || defined __CYGWIN__ namespace eigenpy { - EIGENPY_DLLEXPORT PyObject* call_PyArray_SimpleNew(int nd, npy_intp * shape, NPY_TYPES np_type); + EIGENPY_DLLEXPORT PyObject* call_PyArray_SimpleNew(int nd, npy_intp * shape, int np_type); - EIGENPY_DLLEXPORT PyObject* call_PyArray_New(int nd, npy_intp * shape, NPY_TYPES np_type, void * data_ptr, int options); + EIGENPY_DLLEXPORT PyObject* call_PyArray_New(int nd, npy_intp * shape, int np_type, void * data_ptr, int options); EIGENPY_DLLEXPORT int call_PyArray_ObjectType(PyObject *, int); } diff --git a/src/numpy.cpp b/src/numpy.cpp index 17e285788d44ed02b78a401adbb4a7c1817c9b5f..4e7531bc1def4d91dd5892d2a1c5ddf56addc0dc 100644 --- a/src/numpy.cpp +++ b/src/numpy.cpp @@ -17,12 +17,12 @@ namespace eigenpy #if defined _WIN32 || defined __CYGWIN__ - PyObject* call_PyArray_SimpleNew(int nd, npy_intp * shape, NPY_TYPES np_type) + PyObject* call_PyArray_SimpleNew(int nd, npy_intp * shape, int np_type) { return PyArray_SimpleNew(nd,shape,np_type); } - PyObject* call_PyArray_New(int nd, npy_intp * shape, NPY_TYPES np_type, void * data_ptr, int options) + PyObject* call_PyArray_New(int nd, npy_intp * shape, int np_type, void * data_ptr, int options) { return PyArray_New(&PyArray_Type,nd,shape,np_type,NULL,data_ptr,0,options,NULL); }