diff options
author | ShinDarth <borzifrancesco@gmail.com> | 2016-08-17 10:14:13 +0200 |
---|---|---|
committer | ShinDarth <borzifrancesco@gmail.com> | 2016-08-17 10:14:13 +0200 |
commit | cd250f3fec21aecf2e389290366afb41ec9721b1 (patch) | |
tree | caa78f7150fbf3fc8f2b2d7c8992e27561b43a52 /modules | |
parent | a6d4db8910b14194fbb764ea95efb881c0005d74 (diff) |
Some corrections to previous commits
Diffstat (limited to 'modules')
-rw-r--r-- | modules/acore/deps/mysqllite/include/my_global.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/acore/deps/mysqllite/include/my_global.h b/modules/acore/deps/mysqllite/include/my_global.h index 3bd3f219c4..dd0a18f7a7 100644 --- a/modules/acore/deps/mysqllite/include/my_global.h +++ b/modules/acore/deps/mysqllite/include/my_global.h @@ -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)) |