mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
i18n: fix the build with i18n disabled.
Don't include gettext.h if !ENABLE_NLS.
This commit is contained in:
parent
a184419ec5
commit
59bf16352b
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue