aboutsummaryrefslogtreecommitdiff
path: root/opcodes/opintl.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-05-30 18:35:35 +0000
committerNick Clifton <nickc@redhat.com>2000-05-30 18:35:35 +0000
commitc1485d85e0bae60bf321baa007dd44bcc56b534b (patch)
tree05fb4d47e213be2861b124b1278ec24911e36fef /opcodes/opintl.h
parentc1a72ffdd6aecb2880a7ea3a00234fd48142074c (diff)
downloadgdb-c1485d85e0bae60bf321baa007dd44bcc56b534b.zip
gdb-c1485d85e0bae60bf321baa007dd44bcc56b534b.tar.gz
gdb-c1485d85e0bae60bf321baa007dd44bcc56b534b.tar.bz2
Replace defines with those from intl/libgettext.h to quieten gcc warnings.
Diffstat (limited to 'opcodes/opintl.h')
-rw-r--r--opcodes/opintl.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/opcodes/opintl.h b/opcodes/opintl.h
index a590160..c46ddbd 100644
--- a/opcodes/opintl.h
+++ b/opcodes/opintl.h
@@ -12,19 +12,18 @@
#ifdef ENABLE_NLS
# include <libintl.h>
-# define _(String) dgettext (PACKAGE, String)
+# define _(String) gettext (String)
# ifdef gettext_noop
# define N_(String) gettext_noop (String)
# else
# define N_(String) (String)
# endif
#else
-/* Stubs that do something close enough. */
-# define textdomain(String) (String)
-# define gettext(String) (String)
-# define dgettext(Domain,Message) (Message)
-# define dcgettext(Domain,Message,Type) (Message)
-# define bindtextdomain(Domain,Directory) (Domain)
+# define gettext(Msgid) (Msgid)
+# define dgettext(Domainname, Msgid) (Msgid)
+# define dcgettext(Domainname, Msgid, Category) (Msgid)
+# define textdomain(Domainname) while (0) /* nothing */
+# define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
# define _(String) (String)
# define N_(String) (String)
#endif