aboutsummaryrefslogtreecommitdiff
path: root/devel/electron29/files/patch-third__party_perfetto_src_base_string__utils.cc
blob: ec41d64c1f8d83aa8f9bad5c77a6cd85d2c72409 (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-11-29 21:41:38 UTC
+++ third_party/perfetto/src/base/string_utils.cc
@@ -38,9 +38,10 @@ double StrToD(const char* nptr, char** endptr) {
 
 // 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