blob: 2a6c294b96d91ecd739f3725e9882c7b7831d422 (
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
25
26
|
# Make short_lang_prefix non-const because it may be modified.
# Upstream MR: https://sourceforge.net/p/tuxpaint/tuxpaint/merge-requests/23/
--- a/src/i18n.c
+++ b/src/i18n.c
@@ -256,7 +256,8 @@ static int lang_use_right_to_left[] = {
int need_own_font;
int need_right_to_left;
-const char *lang_prefix, *short_lang_prefix;
+const char *lang_prefix;
+char *short_lang_prefix;
w_langs wished_langs[255];
--- a/src/i18n.h
+++ b/src/i18n.h
@@ -185,7 +185,8 @@ typedef struct language_to_locale_struct
extern const char *lang_prefixes[NUM_LANGS];
extern int need_own_font;
extern int need_right_to_left; // Right-justify
-extern const char *lang_prefix, *short_lang_prefix;
+extern const char *lang_prefix;
+extern char *short_lang_prefix;
typedef struct w_langs
{
|