[0.10] gstreamer: gst: include locale.h before any other i18n headers

Tim Müller tpm at kemper.freedesktop.org
Thu Jan 5 10:37:38 PST 2012


Module: gstreamer
Branch: 0.10
Commit: d690fceb53f02f8887b42249ac9cbf0f19d26771
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=d690fceb53f02f8887b42249ac9cbf0f19d26771

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Thu Jan  5 00:30:30 2012 +0000

gst: include locale.h before any other i18n headers

This is also how we do it in -base.

https://bugzilla.gnome.org/show_bug.cgi?id=667290

---

 gst/gst-i18n-app.h |    1 +
 gst/gst-i18n-lib.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gst/gst-i18n-app.h b/gst/gst-i18n-app.h
index 06339b8..b579c9d 100644
--- a/gst/gst-i18n-app.h
+++ b/gst/gst-i18n-app.h
@@ -25,6 +25,7 @@
 
 #ifdef ENABLE_NLS
 
+#include <locale.h>  /* some people need it and some people don't */
 #include "gettext.h" /* included with gettext distribution and copied */
 
 /* we want to use shorthand _() for translating and N_() for marking */
diff --git a/gst/gst-i18n-lib.h b/gst/gst-i18n-lib.h
index e4eb45e..1902196 100644
--- a/gst/gst-i18n-lib.h
+++ b/gst/gst-i18n-lib.h
@@ -29,6 +29,7 @@
 
 #ifdef ENABLE_NLS
 
+#include <locale.h>  /* some people need it and some people don't */
 #include "gettext.h" /* included with gettext distribution and copied */
 
 /* we want to use shorthand _() for translating and N_() for marking */



More information about the gstreamer-commits mailing list