blob: 14342279adeb24cf53cb081f15c7cb56448aabd8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- third_party/perfetto/src/base/string_utils.cc.orig 2022-02-07 13:39:41 UTC
+++ third_party/perfetto/src/base/string_utils.cc
@@ -36,9 +36,10 @@ namespace base {
// Locale-independant as possible version of strtod.
double StrToD(const char* nptr, char** endptr) {
-#if PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) || \
+#if (PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) || \
PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \
- PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE)
+ PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE)) && \
+ !PERFETTO_BUILDFLAG(PERFETTO_OS_BSD)
static auto c_locale = newlocale(LC_ALL, "C", nullptr);
return strtod_l(nptr, endptr, c_locale);
#else
|