aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-05-13 13:05:36 +0000
committerAlan Modra <amodra@gmail.com>2000-05-13 13:05:36 +0000
commit897083bdcd3240fe6b53fa7e91d500277d0e5172 (patch)
treecb99239cf53a936cfe89d6c5ae2fba8c8aaf52e7 /ld
parenta38cf1db3a1c32ca85b78a1c50001af4714c1066 (diff)
downloadgdb-897083bdcd3240fe6b53fa7e91d500277d0e5172.zip
gdb-897083bdcd3240fe6b53fa7e91d500277d0e5172.tar.gz
gdb-897083bdcd3240fe6b53fa7e91d500277d0e5172.tar.bz2
Quell some gcc warnings by defining textdomain and bindtextdomain
as intl/libgettext.h does.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/ld.h11
2 files changed, 11 insertions, 6 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 474658c..8a8f4f8 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2000-05-13 Alan Modra <alan@linuxcare.com.au>
+
+ * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
+ Replace defines with those from intl/libgettext.h to quieten gcc
+ warnings.
+
2000-05-10 H.J. Lu <hjl@gnu.org>
* ldlang.c (open_input_bfds): Don't load the same file within
diff --git a/ld/ld.h b/ld/ld.h
index e2052a0..9f98e06 100644
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -35,12 +35,11 @@
# 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