mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-16 19:22:00 +02:00
26 lines
671 B
Diff
26 lines
671 B
Diff
--- a/modules/juce_core/native/juce_SystemStats_linux.cpp
|
|
+++ b/modules/juce_core/native/juce_SystemStats_linux.cpp
|
|
@@ -204,7 +204,11 @@ String SystemStats::getUserLanguage()
|
|
#if JUCE_BSD
|
|
return {};
|
|
#else
|
|
+ #ifdef __GLIBC__
|
|
return getLocaleValue (_NL_ADDRESS_LANG_AB);
|
|
+ #else
|
|
+ return String(); // musl doesn't support _NL_ADDRESS_LANG_AB
|
|
+ #endif
|
|
#endif
|
|
}
|
|
|
|
@@ -213,7 +217,11 @@ String SystemStats::getUserRegion()
|
|
#if JUCE_BSD
|
|
return {};
|
|
#else
|
|
+ #ifdef __GLIBC__
|
|
return getLocaleValue (_NL_ADDRESS_COUNTRY_AB2);
|
|
+ #else
|
|
+ return String(); // musl doesn't support _NL_ADDRESS_COUNTRY_AB2
|
|
+ #endif
|
|
#endif
|
|
}
|