summaryrefslogtreecommitdiff
path: root/gcc/intl.h
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2010-02-14 19:44:07 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2010-02-14 19:44:07 +0000
commit70da6ffe6435f8e9815fa06390aefc5f552eebcf (patch)
treedcd9083bb8ddcca54218f5be9eb599e62829664f /gcc/intl.h
parenta10b185d8c347cb28c8896b7470973f6844adf68 (diff)
downloadgcc-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.h5
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 _