summaryrefslogtreecommitdiff
path: root/gcc/intl.c
diff options
context:
space:
mode:
authorMarco Poletti <poletti.marco@gmail.com>2010-02-14 19:44:07 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2010-02-14 19:44:07 +0000
commit0f667308a96b55574e8d024a0483a1cca100bce1 (patch)
treedcd9083bb8ddcca54218f5be9eb599e62829664f /gcc/intl.c
parente4a20ced34656f9dee37bce74a07e22e281aa6a9 (diff)
intl.c (fake_ngettext): New function.
2010-02-14 Marco Poletti <poletti.marco@gmail.com> * 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. From-SVN: r156762
Diffstat (limited to 'gcc/intl.c')
-rw-r--r--gcc/intl.c13
1 files changed, 13 insertions, 0 deletions
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. */