From 2ec11ab80ae81a29cfc2d7f31b7cc337f2799c30 Mon Sep 17 00:00:00 2001 From: Al Hoang <13622+hoanga@users.noreply.github.com> Date: Mon, 26 Aug 2024 02:16:28 -0500 Subject: [PATCH] haiku support (#17) --- src/string_convert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string_convert.cpp b/src/string_convert.cpp index 7f91ab6..7e15449 100644 --- a/src/string_convert.cpp +++ b/src/string_convert.cpp @@ -38,7 +38,7 @@ inline my_locale_t default_locale() { return _create_locale(LC_ALL, "C"); } inline unsigned long long strtoull(const char* str, char** endptr, int base) { return _strtoui64(str, endptr, base); } inline long long strtoll(const char* str, char** endptr, int base) { return _strtoi64(str, endptr, base); } #endif -#elif defined(__CYGWIN__) || defined (__MINGW32__) || defined (__OpenBSD__) +#elif defined(__CYGWIN__) || defined (__MINGW32__) || defined (__OpenBSD__) || defined(__HAIKU__) #include typedef std::locale my_locale_t; static double strtod_l(const char* x, char** end, const my_locale_t& loc) {