summaryrefslogtreecommitdiffstats
path: root/devel/seed/files/patch-modules_gettext_seed-gettext.c
blob: 868c4585500dfbe66aa0c75735efb1ddce658f2c (plain) (blame)
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
27
28
29
30
31
32
33
34
35
36
37
--- modules/gettext/seed-gettext.c.orig 2009-12-31 05:42:51.000000000 -0500
+++ modules/gettext/seed-gettext.c  2010-01-07 19:07:10.000000000 -0500
@@ -287,7 +287,8 @@ seed_static_function gettext_funcs[] = {
    {"dngettext", seed_gettext_dngettext, 0},
    {"dcngettext", seed_gettext_dcngettext, 0},
    {"setlocale", seed_gettext_setlocale, 0},
-   {"gettext", seed_gettext_gettext, 0}
+   {"gettext", seed_gettext_gettext, 0},
+   {NULL, NULL, 0}
 };
 
 SeedObject
@@ -312,12 +313,24 @@ seed_module_init(SeedEngine *local_eng)
    DEFINE_ENUM_MEMBER(ns_ref, LC_MONETARY);
    DEFINE_ENUM_MEMBER(ns_ref, LC_MESSAGES);
    DEFINE_ENUM_MEMBER(ns_ref, LC_ALL);
+#ifdef LC_PAPER
    DEFINE_ENUM_MEMBER(ns_ref, LC_PAPER);
+#endif
+#ifdef LC_NAME
    DEFINE_ENUM_MEMBER(ns_ref, LC_NAME);
+#endif
+#ifdef LC_ADDRESS
    DEFINE_ENUM_MEMBER(ns_ref, LC_ADDRESS);
+#endif
+#ifdef LC_TELEPHONE
    DEFINE_ENUM_MEMBER(ns_ref, LC_TELEPHONE);
+#endif
+#ifdef LC_MEASUREMENT
    DEFINE_ENUM_MEMBER(ns_ref, LC_MEASUREMENT);
+#endif
+#ifdef LC_IDENTIFICATION
    DEFINE_ENUM_MEMBER(ns_ref, LC_IDENTIFICATION);
+#endif
    DEFINE_ENUM_MEMBER(ns_ref, LC_CTYPE);
 
    return ns_ref;