Rename USE_FAST_DOUBLE_PARSER macro

This commit is contained in:
Nigel Tao committed 2020-09-07 22:59:45 +10:00
1 parent a20a2bbe56
commit 510c230cf4
1 file changed
+3 -3
+3 -3
View File
@@ -70,9 +70,9 @@
// Uncomment this to use the github.com/lemire/fast_double_parser library. This
// header-only library is C++, not C.
// #define USE_FAST_DOUBLE_PARSER
// #define USE_LEMIRE_FAST_DOUBLE_PARSER
#ifdef USE_FAST_DOUBLE_PARSER
#ifdef USE_LEMIRE_FAST_DOUBLE_PARSER
#include "/the/path/to/fast_double_parser/include/fast_double_parser.h"
#endif
@@ -238,7 +238,7 @@ main1(int argc, char** argv) {
if (g_flags.parse_number_f64) {
wuffs_base__result_f64 r;
#ifdef USE_FAST_DOUBLE_PARSER
#ifdef USE_LEMIRE_FAST_DOUBLE_PARSER
// Wuffs (and its JSON parser) works with slices (pointer-length
// pairs) but fast_double_parser works with NUL-terminated strings.
char buf[1024];