From 70da6ffe6435f8e9815fa06390aefc5f552eebcf Mon Sep 17 00:00:00 2001 From: jsm28 Date: Sun, 14 Feb 2010 19:44:07 +0000 Subject: 2010-02-14 Marco Poletti * intl.c (fake_ngettext): New function. * intl.h (fake_ngettext): Declare. (ngettext): Define macro. * collect2.c (notice_translated): New function. (main): Use notice_translated and ngettext. * collect2.h (notice_translated): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156762 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/intl.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gcc/intl.c') diff --git a/gcc/intl.c b/gcc/intl.c index 63de3ec4d83..47e0b3da051 100644 --- a/gcc/intl.c +++ b/gcc/intl.c @@ -121,6 +121,19 @@ gcc_gettext_width (const char *msgstr) #endif /* ENABLE_NLS */ +#ifndef ENABLE_NLS + +const char * +fake_ngettext (const char *singular, const char *plural, unsigned long n) +{ + if (n == 1UL) + return singular; + + return plural; +} + +#endif + /* Return the indent for successive lines, using the width of the STR. STR must have been translated already. The string must be freed by the caller. */ -- cgit v1.2.1