From 51eba9a95b834d7fc45f60d34ad486df009cbd38 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Wed, 19 Jun 2024 15:05:33 +0200 Subject: Fix build (hackish) diff --git a/src/utils/NumberUtils.h b/src/utils/NumberUtils.h index 08a9ba0..157caed 100644 --- a/src/utils/NumberUtils.h +++ b/src/utils/NumberUtils.h @@ -64,6 +64,8 @@ really_inline from_chars_result from_chars(const char *first, const char *last, double #ifdef _WIN32 tempval = _strtod_l(first, &endptr, loc.local); +#elif defined(__HAIKU__) + tempval = ::strtod(first, &endptr); #else tempval = ::strtod_l(first, &endptr, loc.local); #endif @@ -108,6 +110,8 @@ really_inline from_chars_result from_chars(const char *first, const char *last, #elif __APPLE__ // On OSX, strtod_l is for some reason drastically faster than strtof_l. tempval = static_cast(::strtod_l(first, &endptr, loc.local)); +#elif defined(__HAIKU__) + tempval = ::strtof(first, &endptr); #else tempval = ::strtof_l(first, &endptr, loc.local); #endif -- 2.45.1