summaryrefslogtreecommitdiff
path: root/www/ungoogled-chromium/files/patch-third__party_perfetto_src_base_string__utils.cc
blob: df0f040f788e5fb9d7a68cd929cad8018a98f4aa (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	2023-12-23 12:33:28 UTC
+++ third_party/perfetto/src/base/string_utils.cc
@@ -38,9 +38,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