diff options
author | Marco Poletti <poletti.marco@gmail.com> | 2010-02-14 19:44:07 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2010-02-14 19:44:07 +0000 |
commit | 0f667308a96b55574e8d024a0483a1cca100bce1 (patch) | |
tree | dcd9083bb8ddcca54218f5be9eb599e62829664f /gcc/intl.c | |
parent | e4a20ced34656f9dee37bce74a07e22e281aa6a9 (diff) | |
download | gcc-0f667308a96b55574e8d024a0483a1cca100bce1.zip gcc-0f667308a96b55574e8d024a0483a1cca100bce1.tar.gz gcc-0f667308a96b55574e8d024a0483a1cca100bce1.tar.bz2 |
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.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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. */ |