diff options
Diffstat (limited to 'include/my_global.h')
-rw-r--r-- | include/my_global.h | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/include/my_global.h b/include/my_global.h index 4ce4671c571..8103f82a7e2 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -811,26 +811,8 @@ inline unsigned long long my_double2ulonglong(double d) #define SIZE_T_MAX (~((size_t) 0)) #endif -#ifndef isfinite -#ifdef HAVE_FINITE -#define isfinite(x) finite(x) -#else -#define finite(x) (1.0 / fabs(x) > 0.0) -#endif /* HAVE_FINITE */ -#elif (__cplusplus >= 201103L) +#ifdef __cplusplus #include <cmath> -static inline bool isfinite(double x) { return std::isfinite(x); } -#endif /* isfinite */ - -#ifndef HAVE_ISNAN -#define isnan(x) ((x) != (x)) -#endif -#define my_isnan(x) isnan(x) - -#ifdef HAVE_ISINF -#define my_isinf(X) isinf(X) -#else /* !HAVE_ISINF */ -#define my_isinf(X) (!finite(X) && !isnan(X)) #endif /* Define missing math constants. */ |