Some corrections to previous commits

This commit is contained in:
ShinDarth
2016-08-17 10:14:13 +02:00
parent a6d4db8910
commit cd250f3fec
2 changed files with 6 additions and 3 deletions

View File

@@ -786,9 +786,12 @@ 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 */
#define isfinite(x) (1.0 / fabs(x) > 0.0)
#endif /* isfinite */
#ifndef HAVE_ISNAN
#define isnan(x) ((x) != (x))