aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@openbsd.org>2011-10-01 19:50:24 +0800
committerAntoine Jacoutot <ajacoutot@openbsd.org>2011-10-01 20:16:11 +0800
commit328334d9c9eb4c0c9ed249eb33461a0071df9635 (patch)
tree4371a3a2f0ee3355ccff825cecbcdf825f213db4 /addressbook
parentfa1793d22f234c5ff161638bc99f939c3040ba13 (diff)
downloadgsoc2013-evolution-328334d9c9eb4c0c9ed249eb33461a0071df9635.tar
gsoc2013-evolution-328334d9c9eb4c0c9ed249eb33461a0071df9635.tar.gz
gsoc2013-evolution-328334d9c9eb4c0c9ed249eb33461a0071df9635.tar.bz2
gsoc2013-evolution-328334d9c9eb4c0c9ed249eb33461a0071df9635.tar.lz
gsoc2013-evolution-328334d9c9eb4c0c9ed249eb33461a0071df9635.tar.xz
gsoc2013-evolution-328334d9c9eb4c0c9ed249eb33461a0071df9635.tar.zst
gsoc2013-evolution-328334d9c9eb4c0c9ed249eb33461a0071df9635.zip
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
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c4
1 files changed, 4 insertions, 0 deletions
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;