summaryrefslogtreecommitdiff
path: root/numpy/core/include
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2022-08-19 13:12:50 -0600
committerGitHub <noreply@github.com>2022-08-19 22:12:50 +0300
commit17d730ae32f5f60c9c2ca75d202b4e866debd686 (patch)
tree8f1b1b8cd623738274cfdbeb12a3c829711ce58e /numpy/core/include
parent555c07f71d779d59a0ea097f811442a6c1bb405c (diff)
downloadnumpy-17d730ae32f5f60c9c2ca75d202b4e866debd686.tar.gz
DEP: drop support for msvc<=1900 and Interix (#22139)
[ci skip] Co-authored-by: h-vetinari <h.vetinari@gmx.com>
Diffstat (limited to 'numpy/core/include')
-rw-r--r--numpy/core/include/numpy/npy_math.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/numpy/core/include/numpy/npy_math.h b/numpy/core/include/numpy/npy_math.h
index 954c3d0e9..1f4cea613 100644
--- a/numpy/core/include/numpy/npy_math.h
+++ b/numpy/core/include/numpy/npy_math.h
@@ -219,11 +219,7 @@ double npy_spacing(double x);
#ifndef NPY_HAVE_DECL_ISNAN
#define npy_isnan(x) ((x) != (x))
#else
- #if defined(_MSC_VER) && (_MSC_VER < 1900)
- #define npy_isnan(x) _isnan((x))
- #else
- #define npy_isnan(x) isnan(x)
- #endif
+ #define npy_isnan(x) isnan(x)
#endif
#endif
@@ -250,11 +246,7 @@ double npy_spacing(double x);
#ifndef NPY_HAVE_DECL_ISINF
#define npy_isinf(x) (!npy_isfinite(x) && !npy_isnan(x))
#else
- #if defined(_MSC_VER) && (_MSC_VER < 1900)
- #define npy_isinf(x) (!_finite((x)) && !_isnan((x)))
- #else
- #define npy_isinf(x) isinf((x))
- #endif
+ #define npy_isinf(x) isinf((x))
#endif
#endif