mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +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__
|
||||
#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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue