projects/aports·blob master · refs

25 lines · 671 B

1--- a/modules/juce_core/native/juce_SystemStats_linux.cpp
2+++ b/modules/juce_core/native/juce_SystemStats_linux.cpp
3@@ -204,7 +204,11 @@ String SystemStats::getUserLanguage()
4 #if JUCE_BSD
5 return {};
6 #else
7+ #ifdef __GLIBC__
8 return getLocaleValue (_NL_ADDRESS_LANG_AB);
9+ #else
10+ return String(); // musl doesn't support _NL_ADDRESS_LANG_AB
11+ #endif
12 #endif
13 }
14
15@@ -213,7 +217,11 @@ String SystemStats::getUserRegion()
16 #if JUCE_BSD
17 return {};
18 #else
19+ #ifdef __GLIBC__
20 return getLocaleValue (_NL_ADDRESS_COUNTRY_AB2);
21+ #else
22+ return String(); // musl doesn't support _NL_ADDRESS_COUNTRY_AB2
23+ #endif
24 #endif
25 }