i18n: fix the build with i18n disabled.
authorStefan Kost <ensonic@users.sf.net>
Thu, 11 Mar 2010 08:00:45 +0000 (10:00 +0200)
committerStefan Kost <ensonic@users.sf.net>
Thu, 11 Mar 2010 08:04:27 +0000 (10:04 +0200)
Don't include gettext.h if !ENABLE_NLS.

gst/gst-i18n-app.h
gst/gst-i18n-lib.h

index 65e27ba..f94dd60 100644 (file)
 #ifndef __GST_I18N_APP_H__
 #define __GST_I18N_APP_H__
 
-#include "gettext.h" /* included with gettext distribution and copied */
-
 #ifdef ENABLE_NLS
 
+#include "gettext.h" /* included with gettext distribution and copied */
+
 /* we want to use shorthand _() for translating and N_() for marking */
 #define _(String) gettext (String)
 #define N_(String) gettext_noop (String)
index ebce721..265dcae 100644 (file)
 #error You must include config.h before including this header.
 #endif
 
-#include "gettext.h" /* included with gettext distribution and copied */
-
 #ifdef ENABLE_NLS
 
+#include "gettext.h" /* included with gettext distribution and copied */
+
 /* we want to use shorthand _() for translating and N_() for marking */
 #define _(String) dgettext (GETTEXT_PACKAGE, String)
 #define N_(String) gettext_noop (String)