1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-18 01:47:07 +00:00
termux-packages/disabled-packages/widelands/src-base-i18n.cc.patch
Tee KOBAYASHI a2b8b38703 new disabled package: widelands
disabled due to violation of 100MiB criterion in our packaging policy.
2022-05-08 16:27:15 +09:00

32 lines
558 B
Diff

--- a/src/base/i18n.cc
+++ b/src/base/i18n.cc
@@ -39,14 +39,16 @@
#define SETLOCALE libintl_setlocale
#endif // LIBINTL_VERSION
#else // __APPLE__
-#if defined _WIN32
+#if defined _WIN32 || defined __ANDROID__
#define SETLOCALE setlocale
#else
#define SETLOCALE std::setlocale
#endif
#endif
+#ifndef __ANDROID__
extern int _nl_msg_cat_cntr;
+#endif
namespace i18n {
@@ -335,8 +337,10 @@
}
/* Finally make changes known. */
+#ifndef __ANDROID__
++_nl_msg_cat_cntr;
#endif
+#endif
SETLOCALE(LC_ALL, ""); // call to libintl