summaryrefslogtreecommitdiff
path: root/numpy/f2py/src/fortranobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/f2py/src/fortranobject.h')
-rw-r--r--numpy/f2py/src/fortranobject.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/f2py/src/fortranobject.h b/numpy/f2py/src/fortranobject.h
index 353b2a64b..73d4fad60 100644
--- a/numpy/f2py/src/fortranobject.h
+++ b/numpy/f2py/src/fortranobject.h
@@ -58,9 +58,9 @@ Author: Pearu Peterson <pearu@cens.ioc.ee>
#define F2PY_MAX_DIMS 40
-typedef void (*f2py_set_data_func)(char*,intp*);
+typedef void (*f2py_set_data_func)(char*,npy_intp*);
typedef void (*f2py_void_func)(void);
-typedef void (*f2py_init_func)(int*,intp*,f2py_set_data_func,int*);
+typedef void (*f2py_init_func)(int*,npy_intp*,f2py_set_data_func,int*);
/*typedef void* (*f2py_c_func)(void*,...);*/
@@ -70,7 +70,7 @@ typedef struct {
char *name; /* attribute (array||routine) name */
int rank; /* array rank, 0 for scalar, max is F2PY_MAX_DIMS,
|| rank=-1 for Fortran routine */
- struct {intp d[F2PY_MAX_DIMS];} dims; /* dimensions of the array, || not used */
+ struct {npy_intp d[F2PY_MAX_DIMS];} dims; /* dimensions of the array, || not used */
int type; /* PyArray_<type> || not used */
char *data; /* pointer to array || Fortran routine */
f2py_init_func func; /* initialization function for
@@ -108,7 +108,7 @@ typedef struct {
#define F2PY_INTENT_INPLACE 256
extern PyArrayObject* array_from_pyobj(const int type_num,
- intp *dims,
+ npy_intp *dims,
const int rank,
const int intent,
PyObject *obj);