diff options
Diffstat (limited to 'deps/jemalloc/test/unit/math.c')
-rw-r--r-- | deps/jemalloc/test/unit/math.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/jemalloc/test/unit/math.c b/deps/jemalloc/test/unit/math.c index a1b288ea1..ebec77a62 100644 --- a/deps/jemalloc/test/unit/math.c +++ b/deps/jemalloc/test/unit/math.c @@ -3,6 +3,12 @@ #define MAX_REL_ERR 1.0e-9 #define MAX_ABS_ERR 1.0e-9 +#include <float.h> + +#ifndef INFINITY +#define INFINITY (DBL_MAX + DBL_MAX) +#endif + static bool double_eq_rel(double a, double b, double max_rel_err, double max_abs_err) { |