Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/include/my_global.h b/include/my_global.h | ||
index cb31ae2..2866f87 100644 | ||
--- a/include/my_global.h | ||
+++ b/include/my_global.h | ||
@@ -803,12 +803,6 @@ inline unsigned long long my_double2ulonglong(double d) | ||
#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) | ||
#include <cmath> | ||
static inline bool isfinite(double x) { return std::isfinite(x); } | ||
#endif /* isfinite */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters