summaryrefslogtreecommitdiff
path: root/gl/gettext.h
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2006-11-16 14:34:10 +0000
committerSimon Josefsson <simon@josefsson.org>2006-11-16 14:34:10 +0000
commit8d0e3fe63087fdf8b83f810977a163d903bb3999 (patch)
tree44d6d0aaa10c0f17629cc452f32c827db5882e4b /gl/gettext.h
parent7fb4b71c5c3f55e7686209d9993726dfaa219b27 (diff)
downloadlibtasn1-8d0e3fe63087fdf8b83f810977a163d903bb3999.tar.gz
libtasn1-8d0e3fe63087fdf8b83f810977a163d903bb3999.tar.bz2
libtasn1-8d0e3fe63087fdf8b83f810977a163d903bb3999.zip
Update.
Diffstat (limited to 'gl/gettext.h')
-rw-r--r--gl/gettext.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/gl/gettext.h b/gl/gettext.h
index f15eb6a..18c62a4 100644
--- a/gl/gettext.h
+++ b/gl/gettext.h
@@ -64,17 +64,22 @@
On pre-ANSI systems without 'const', the config.h file is supposed to
contain "#define const". */
# define gettext(Msgid) ((const char *) (Msgid))
-# define dgettext(Domainname, Msgid) ((const char *) (Msgid))
-# define dcgettext(Domainname, Msgid, Category) ((const char *) (Msgid))
+# define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid))
+# define dcgettext(Domainname, Msgid, Category) \
+ ((void) (Category), dgettext (Domainname, Msgid))
# define ngettext(Msgid1, Msgid2, N) \
- ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
+ ((N) == 1 \
+ ? ((void) (Msgid2), (const char *) (Msgid1)) \
+ : ((void) (Msgid1), (const char *) (Msgid2)))
# define dngettext(Domainname, Msgid1, Msgid2, N) \
- ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
+ ((void) (Domainname), ngettext (Msgid1, Msgid2, N))
# define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
- ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
+ ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N))
# define textdomain(Domainname) ((const char *) (Domainname))
-# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname))
-# define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset))
+# define bindtextdomain(Domainname, Dirname) \
+ ((void) (Domainname), (const char *) (Dirname))
+# define bind_textdomain_codeset(Domainname, Codeset) \
+ ((void) (Domainname), (const char *) (Codeset))
#endif