diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/math_c99.inc.src | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/core/src/math_c99.inc.src b/numpy/core/src/math_c99.inc.src index 7e96b5eec..542500d49 100644 --- a/numpy/core/src/math_c99.inc.src +++ b/numpy/core/src/math_c99.inc.src @@ -143,9 +143,8 @@ double trunc(double x) # define isfinite(x) !isnan((x) - (x)) #endif -/* Define isfinie if needed */ -#if !defined(HAVE_DECL_ISFINITE) -#define isfinite(x) (!isinf(x) && !isnan(x)) +#if !defined(HAVE_DECL_ISINF) +#define isinf(x) (!isfinite(x) && !isnan(x)) #endif #if !defined(HAVE_DECL_SIGNBIT) |