From 59bf16352b779911575e55697c7b34e90018cee8 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 11 Mar 2010 10:00:45 +0200 Subject: [PATCH] i18n: fix the build with i18n disabled. Don't include gettext.h if !ENABLE_NLS. --- gst/gst-i18n-app.h | 4 ++-- gst/gst-i18n-lib.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/gst-i18n-app.h b/gst/gst-i18n-app.h index 65e27ba..f94dd60 100644 --- a/gst/gst-i18n-app.h +++ b/gst/gst-i18n-app.h @@ -23,10 +23,10 @@ #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) diff --git a/gst/gst-i18n-lib.h b/gst/gst-i18n-lib.h index ebce721..265dcae 100644 --- a/gst/gst-i18n-lib.h +++ b/gst/gst-i18n-lib.h @@ -27,10 +27,10 @@ #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) -- 2.7.4