[gnome-session/gnome-3-8] Don't unconditionally use LC_* GNU extensions.
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session/gnome-3-8] Don't unconditionally use LC_* GNU extensions.
- Date: Tue, 30 Jul 2013 19:15:02 +0000 (UTC)
commit 952498be272663fe913ce02b76e202121ba64b06
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 c3ea1d9..a738ff6 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -2916,13 +2916,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]