i18n: fix the build with i18n disabled.

Don't include gettext.h if !ENABLE_NLS.
This commit is contained in:
Stefan Kost 2010-03-11 10:00:45 +02:00
parent a184419ec5
commit 59bf16352b
2 changed files with 4 additions and 4 deletions

View file

@ -23,10 +23,10 @@
#ifndef __GST_I18N_APP_H__ #ifndef __GST_I18N_APP_H__
#define __GST_I18N_APP_H__ #define __GST_I18N_APP_H__
#include "gettext.h" /* included with gettext distribution and copied */
#ifdef ENABLE_NLS #ifdef ENABLE_NLS
#include "gettext.h" /* included with gettext distribution and copied */
/* we want to use shorthand _() for translating and N_() for marking */ /* we want to use shorthand _() for translating and N_() for marking */
#define _(String) gettext (String) #define _(String) gettext (String)
#define N_(String) gettext_noop (String) #define N_(String) gettext_noop (String)

View file

@ -27,10 +27,10 @@
#error You must include config.h before including this header. #error You must include config.h before including this header.
#endif #endif
#include "gettext.h" /* included with gettext distribution and copied */
#ifdef ENABLE_NLS #ifdef ENABLE_NLS
#include "gettext.h" /* included with gettext distribution and copied */
/* we want to use shorthand _() for translating and N_() for marking */ /* we want to use shorthand _() for translating and N_() for marking */
#define _(String) dgettext (GETTEXT_PACKAGE, String) #define _(String) dgettext (GETTEXT_PACKAGE, String)
#define N_(String) gettext_noop (String) #define N_(String) gettext_noop (String)