The attached patch will make the inclusion of gettext.h unconditional in gst/gst-i18n-app.h and gst/gst-i18n-lib.h, a...

Original commit message from CVS:
Patch by: Peter Kjellerstedt <pkj at axis dot com>
* gst/gst-i18n-app.h:
* gst/gst-i18n-lib.h:
* tools/gst-inspect.c: (print_signal_info):
The attached patch will make the inclusion of gettext.h unconditional in
gst/gst-i18n-app.h and gst/gst-i18n-lib.h, and it will remove the inclusion of
libintl.h in tools/gst-inspect.c.
This allows use of --disable-nls again and fixes #344642.
This commit is contained in:
Peter Kjellerstedt 2006-07-03 14:14:48 +00:00 committed by Wim Taymans
parent c2491a1e2d
commit c01188cb00
5 changed files with 17 additions and 5 deletions

View file

@ -1,3 +1,15 @@
2006-07-03 Wim Taymans <wim@fluendo.com>
Patch by: Peter Kjellerstedt <pkj at axis dot com>
* gst/gst-i18n-app.h:
* gst/gst-i18n-lib.h:
* tools/gst-inspect.c: (print_signal_info):
The attached patch will make the inclusion of gettext.h unconditional in
gst/gst-i18n-app.h and gst/gst-i18n-lib.h, and it will remove the inclusion of
libintl.h in tools/gst-inspect.c.
This allows use of --disable-nls again and fixes #344642.
2006-07-03 Edward Hervey <edward@fluendo.com> 2006-07-03 Edward Hervey <edward@fluendo.com>
* gst/gstpad.c: (handle_pad_block), (gst_pad_push_event): * gst/gstpad.c: (handle_pad_block), (gst_pad_push_event):

2
common

@ -1 +1 @@
Subproject commit a98b370bd49bc3f3225bbd9013cda5a53789f53d Subproject commit dd173e2720ac21e4a47c97705d7ff32271a0ee66

View file

@ -23,9 +23,10 @@
#ifndef __GST_I18N_APP_H__ #ifndef __GST_I18N_APP_H__
#define __GST_I18N_APP_H__ #define __GST_I18N_APP_H__
#ifdef ENABLE_NLS
#include "gettext.h" /* included with gettext distribution and copied */ #include "gettext.h" /* included with gettext distribution and copied */
#ifdef ENABLE_NLS
/* 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
#ifdef ENABLE_NLS
#include "gettext.h" /* included with gettext distribution and copied */ #include "gettext.h" /* included with gettext distribution and copied */
#ifdef ENABLE_NLS
/* 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)

View file

@ -31,7 +31,6 @@
#include <string.h> #include <string.h>
#include <locale.h> #include <locale.h>
#include <libintl.h>
#include <glib/gprintf.h> #include <glib/gprintf.h>
static char *_name; static char *_name;