[seed] Bug 722116 - Some LC_* variables are not portable



commit 76483e5784807e12279fc4c0be86d89a63c61beb
Author: Alan Knowles <alan roojs com>
Date:   Tue Jan 14 12:25:29 2014 +0800

    Bug 722116 - Some LC_* variables are not portable
    
    wrap with ifdefs

 modules/gettext/seed-gettext.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/modules/gettext/seed-gettext.c b/modules/gettext/seed-gettext.c
index a1b285f..9e78837 100644
--- a/modules/gettext/seed-gettext.c
+++ b/modules/gettext/seed-gettext.c
@@ -313,12 +313,28 @@ 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);
+    
+    /* these are gnu extensions - and not available on BSD systems */
+    
+#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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]