[gnome-control-center/gnome-3-2] region: Fix build on systems without LC_MEASUREMENT
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-2] region: Fix build on systems without LC_MEASUREMENT
- Date: Mon, 3 Oct 2011 13:33:13 +0000 (UTC)
commit 79eea8a94115c01978dd9a370e3deffae1b05351
Author: Antoine Jacoutot <ajacoutot openbsd org>
Date: Mon Oct 3 15:15:15 2011 +0200
region: Fix build on systems without LC_MEASUREMENT
LC_MEASUREMENT is not posix and may not be defined on all systems.
https://bugzilla.gnome.org/show_bug.cgi?id=660787
panels/region/gnome-region-panel-formats.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-formats.c b/panels/region/gnome-region-panel-formats.c
index ed88624..b275ada 100644
--- a/panels/region/gnome-region-panel-formats.c
+++ b/panels/region/gnome-region-panel-formats.c
@@ -132,6 +132,7 @@ update_examples_cb (GtkTreeSelection *selection, gpointer user_data)
g_free (locale);
/* Display measurement */
+#ifdef LC_MEASUREMENT
locale = g_strdup (setlocale (LC_MEASUREMENT, NULL));
setlocale (LC_MEASUREMENT, active_id);
@@ -143,6 +144,7 @@ update_examples_cb (GtkTreeSelection *selection, gpointer user_data)
setlocale (LC_MEASUREMENT, locale);
g_free (locale);
+#endif
g_free (active_id);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]