diff --git a/lib/parse.cpp b/lib/parse.cpp index cba981a2fa..ad48e8232a 100644 --- a/lib/parse.cpp +++ b/lib/parse.cpp @@ -747,7 +747,7 @@ bool XML_PARSER::parse_double(const char* start_tag, double& x) { } } errno = 0; -#ifdef __APPLE__ +#if (defined(__APPLE__) && defined(BUILDING_MANAGER)) // MacOS 13.3.1 apparently broke per-thread locale uselocale() double val = strtod_l(buf, &end, LC_C_LOCALE); #else diff --git a/lib/parse.h b/lib/parse.h index 678aacfff3..a556d6a346 100644 --- a/lib/parse.h +++ b/lib/parse.h @@ -312,7 +312,7 @@ inline bool parse_double(const char* buf, const char* tag, double& x) { const char* p = strstr(buf, tag); if (!p) return false; errno = 0; -#ifdef __APPLE__ +#if (defined(__APPLE__) && defined(BUILDING_MANAGER)) // MacOS 13.3.1 apparently broke per-thread locale uselocale() y = strtod_l(p+strlen(tag), NULL, LC_C_LOCALE); #else diff --git a/mac_build/boinc.xcodeproj/project.pbxproj b/mac_build/boinc.xcodeproj/project.pbxproj index 328f043cf9..c389c1fe06 100644 --- a/mac_build/boinc.xcodeproj/project.pbxproj +++ b/mac_build/boinc.xcodeproj/project.pbxproj @@ -4422,6 +4422,7 @@ "-D_THREAD_SAFE", "-D__WXMAC__", "-D_DEBUG", + "-DBUILDING_MANAGER", "-DMAC_OS_X_VERSION_MAX_ALLOWED=101300", "-DwxADJUST_MINSIZE=0", ); @@ -4434,6 +4435,7 @@ "-D_THREAD_SAFE", "-D__WXMAC__", "-D_DEBUG", + "-DBUILDING_MANAGER", "-DMAC_OS_X_VERSION_MAX_ALLOWED=101300", "-DwxADJUST_MINSIZE=0", ); @@ -4446,6 +4448,7 @@ "-D_THREAD_SAFE", "-D__WXMAC__", "-D_DEBUG", + "-DBUILDING_MANAGER", "-DMAC_OS_X_VERSION_MAX_ALLOWED=101300", "-DwxADJUST_MINSIZE=0", );