From a1b83c86fbea6291e41a72791f1163d7e9683ff6 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Sat, 27 Jul 2002 23:53:55 +0000 Subject: Fix ngettext usage. CVS patchset: 2358 CVS date: 2002/07/27 23:53:55 --- m4/gettext.m4 | 3 ++- src/xine-engine/xineintl.h | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/m4/gettext.m4 b/m4/gettext.m4 index bbb0e9c71..2f9825f2d 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 @@ -116,7 +116,8 @@ return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", "" gt_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" - AC_CHECK_FUNCS(dcgettext) + dnl Xine need ngettext. + AC_CHECK_FUNCS(dcgettext ngettext) LIBS="$gt_save_LIBS" dnl Search for GNU msgfmt in the PATH. diff --git a/src/xine-engine/xineintl.h b/src/xine-engine/xineintl.h index a2b1fcdd7..11cfd6928 100644 --- a/src/xine-engine/xineintl.h +++ b/src/xine-engine/xineintl.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xineintl.h,v 1.1 2001/12/27 14:30:30 f1rmb Exp $ + * $Id: xineintl.h,v 1.2 2002/07/27 23:53:55 f1rmb Exp $ * */ @@ -38,6 +38,9 @@ extern "C" { # else # define N_(String) (String) # endif +# ifndef HAVE_NGETTEXT +# define ngettext(Singular, Plural, IsPlural) (Singular) +# endif #else /* Stubs that do something close enough. */ # define textdomain(String) (String) -- cgit v1.2.3