diff --git a/scipy/integrate/_odepackmodule.c b/scipy/integrate/_odepackmodule.c index 2b2189f0bd08..0c8067e6520e 100644 --- a/scipy/integrate/_odepackmodule.c +++ b/scipy/integrate/_odepackmodule.c @@ -32,6 +32,8 @@ the result tuple when the full_output argument is non-zero. #include "numpy/arrayobject.h" +#define PyArray_MAX(a,b) (((a)>(b))?(a):(b)) + #ifdef HAVE_BLAS_ILP64 #define F_INT npy_int64 #define F_INT_NPY NPY_INT64 diff --git a/scipy/signal/_splinemodule.c b/scipy/signal/_splinemodule.c index 75b497b9866f..b2978be1b4bf 100644 --- a/scipy/signal/_splinemodule.c +++ b/scipy/signal/_splinemodule.c @@ -1,5 +1,7 @@ #include "_splinemodule.h" +#define PyArray_MIN(a,b) (((a)<(b))?(a):(b)) + static void convert_strides(npy_intp* instrides,npy_intp* convstrides,int size,int N) {