aboutsummaryrefslogtreecommitdiffstats
path: root/testing/widelands/fix_nl_msg_cat_cntr.patch
blob: 97a95d5011799cb0f9375eaaaf2acf11e5346913 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/src/base/i18n.cc	2016-11-10 08:28:01.000000000 +0100
+++ b/src/base/i18n.cc	2017-12-19 07:16:43.225723387 +0100
@@ -45,7 +45,9 @@
 #endif
 #endif
 
+#if defined(__GLIBC__)
 extern int _nl_msg_cat_cntr;
+#endif
 
 namespace i18n {
 
@@ -302,9 +304,11 @@
 		locale = lang;
 	}
 
+#if defined(__GLIBC__)
 	/* Finally make changes known.  */
 	++_nl_msg_cat_cntr;
 #endif
+#endif
 
 	SETLOCALE(LC_ALL, "");  //  call to libintl