diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/common/gdb_locale.h | 5 | ||||
-rw-r--r-- | gdb/main.c | 2 |
3 files changed, 9 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8b1f0bc..26b97e6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2016-09-19 Pedro Alves <palves@redhat.com> + + * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, + textdomain, bindtextdomain): Delete macros. + * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and + textdomain calls. + 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com> * darwin-nat.c (darwin_kill_inferior): Adjusting call to diff --git a/gdb/common/gdb_locale.h b/gdb/common/gdb_locale.h index 686260e..f9538a7 100644 --- a/gdb/common/gdb_locale.h +++ b/gdb/common/gdb_locale.h @@ -32,11 +32,6 @@ # define N_(String) (String) # endif #else -# 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 @@ -501,8 +501,10 @@ captured_main (void *data) #if defined (HAVE_SETLOCALE) setlocale (LC_CTYPE, ""); #endif +#ifdef ENABLE_NLS bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); +#endif bfd_init (); notice_open_fds (); |