Skip to content

Commit 444ec4a

Browse files
committed
Stupid me
1 parent 94e9105 commit 444ec4a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/simdjson/portability.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <cstddef>
55
#include <cstdint>
66
#include <cstdlib>
7+
#include <cfloat>
78

89

910
#ifdef _MSC_VER

src/generic/stage2/numberparsing.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ really_inline double compute_float_64(int64_t power, uint64_t i, bool negative,
1313
// It was described in
1414
// Clinger WD. How to read floating point numbers accurately.
1515
// ACM SIGPLAN Notices. 1990
16+
#ifndef FLT_EVAL_METHOD
17+
#error "FLT_EVAL_METHOD should be defined, please include cfloat."
18+
#endif
1619
#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0)
1720
// We cannot be certain that x/y is rounded to nearest.
1821
if (0 <= power && power <= 22 && i <= 9007199254740991) {

0 commit comments

Comments
 (0)