[gnome-session] Don't unconditionally use LC_* GNU extensions.



commit ccc427be6401299f352bf9c19765bb19aba32d7d
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Fri May 24 08:27:01 2013 +0200

    Don't unconditionally use LC_* GNU extensions.
    
    Several LC_* definitions are GNU extensions.
    Unconditional use of them causes compiler errors on non-GNU systems.

 gnome-session/gsm-manager.c |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index 19d3197..98f7949 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -2907,13 +2907,25 @@ is_valid_category (int category)
                LC_COLLATE,
                LC_MONETARY,
                LC_MESSAGES,
-               LC_ALL,
+#if defined (LC_PAPER)
                LC_PAPER,
+#endif
+#if defined (LC_NAME)
                LC_NAME,
+#endif
+#if defined (LC_ADDRESS)
                LC_ADDRESS,
+#endif
+#if defined (LC_TELEPHONE)
                LC_TELEPHONE,
+#endif
+#if defined (LC_MEASUREMENT)
                LC_MEASUREMENT,
-               LC_IDENTIFICATION
+#endif
+#if defined (LC_IDENTIFICATION)
+               LC_IDENTIFICATION,
+#endif
+               LC_ALL
        };
        guint i;
 


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