diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-14 19:44:07 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-14 19:44:07 +0000 |
commit | 70da6ffe6435f8e9815fa06390aefc5f552eebcf (patch) | |
tree | dcd9083bb8ddcca54218f5be9eb599e62829664f /gcc/intl.h | |
parent | a10b185d8c347cb28c8896b7470973f6844adf68 (diff) | |
download | gcc-70da6ffe6435f8e9815fa06390aefc5f552eebcf.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156762 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/intl.h')
-rw-r--r-- | gcc/intl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/intl.h b/gcc/intl.h index 2df9b178c00..61a9434a5cd 100644 --- a/gcc/intl.h +++ b/gcc/intl.h @@ -38,8 +38,13 @@ extern size_t gcc_gettext_width (const char *); # define bindtextdomain(domain, directory) (domain) # undef gettext # define gettext(msgid) (msgid) +# define ngettext(singular,plural,n) fake_ngettext(singular,plural,n) # define gcc_init_libintl() /* nothing */ # define gcc_gettext_width(s) strlen(s) + +extern const char *fake_ngettext(const char *singular,const char *plural, + unsigned long int n); + #endif #ifndef _ |