aboutsummaryrefslogtreecommitdiff
path: root/gold/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/system.h')
-rw-r--r--gold/system.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gold/system.h b/gold/system.h
index 5a3e001..1c21ee1 100644
--- a/gold/system.h
+++ b/gold/system.h
@@ -49,8 +49,14 @@
# define gettext(Msgid) (Msgid)
# define dgettext(Domainname, Msgid) (Msgid)
# define dcgettext(Domainname, Msgid, Category) (Msgid)
-# define textdomain(Domainname) do {} while (0) /* nothing */
-# define bindtextdomain(Domainname, Dirname) do {} while (0) /* nothing */
+# define ngettext(Msgid1, Msgid2, n) \
+ (n == 1 ? Msgid1 : Msgid2)
+# define dngettext(Domainname, Msgid1, Msgid2, n) \
+ (n == 1 ? Msgid1 : Msgid2)
+# define dcngettext(Domainname, Msgid1, Msgid2, n, Category) \
+ (n == 1 ? Msgid1 : Msgid2)
+# define textdomain(Domainname) do {} while (0)
+# define bindtextdomain(Domainname, Dirname) do {} while (0)
# define _(String) (String)
# define N_(String) (String)
#endif