From 328334d9c9eb4c0c9ed249eb33461a0071df9635 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Sat, 1 Oct 2011 13:50:24 +0200 Subject: LC_ADDRESS is no posix and may not be defined. Only setlocale(2) LC_ADDRESS is this macro actually exist. https://bugzilla.gnome.org/show_bug.cgi?id=660624 --- addressbook/gui/widgets/eab-gui-util.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addressbook') diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c index 6994af2b88..09830a94ae 100644 --- a/addressbook/gui/widgets/eab-gui-util.c +++ b/addressbook/gui/widgets/eab-gui-util.c @@ -663,7 +663,11 @@ get_locales (void) gchar *dot; gchar **split; +#ifdef LC_ADDRESS locale = g_strdup (setlocale (LC_ADDRESS, NULL)); +#else + locale = NULL; +#endif if (!locale) return NULL; -- cgit v1.2.3