24 lines
459 B
Diff
24 lines
459 B
Diff
Avoid glibc-specific libintl symbol on musl.
|
|
|
|
--- common/src/Locale.cc
|
|
+++ common/src/Locale.cc
|
|
@@ -34,7 +34,9 @@
|
|
|
|
#include "locale.inc"
|
|
|
|
+#if defined(__GLIBC__)
|
|
extern "C" int _nl_msg_cat_cntr;
|
|
+#endif
|
|
|
|
Locale::LanguageMap Locale::languages_native_locale;
|
|
|
|
@@ -102,7 +104,7 @@ Locale::set_locale(const std::string &code)
|
|
g_unsetenv("LANG");
|
|
}
|
|
|
|
-#ifndef PLATFORM_OS_WIN32_NATIVE
|
|
+#if defined(__GLIBC__)
|
|
++_nl_msg_cat_cntr;
|
|
#endif
|
|
}
|