mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 08:32:11 +01:00
Rename USE_FAST_DOUBLE_PARSER macro
This commit is contained in:
1 parent
a20a2bbe56
commit
510c230cf4
1 file changed
+3
-3
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user