From 2a49eb6935f1df7825be7b2e137c934d72c8000a Mon Sep 17 00:00:00 2001 From: Doug Kwan Date: Wed, 6 Jun 2012 07:49:26 +0000 Subject: [PATCH] 2012-06-05 Jing Yu * gold.h (textdomain): Add do {} to empty while(0). (bindtextdomain): Likewise. --- gold/ChangeLog | 5 +++++ gold/gold.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index c6278584082..6752c13bea5 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2012-06-05 Jing Yu + + * gold.h (textdomain): Add do {} to empty while(0). + (bindtextdomain): Likewise. + 2012-06-04 Cary Coutant * dynobj.cc (Sized_dynobj::do_get_global_symbol_counts): Call diff --git a/gold/gold.h b/gold/gold.h index 88fc4de603b..4258d5543d7 100644 --- a/gold/gold.h +++ b/gold/gold.h @@ -58,8 +58,8 @@ # 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 textdomain(Domainname) do {} while (0) /* nothing */ +# define bindtextdomain(Domainname, Dirname) do {} while (0) /* nothing */ # define _(String) (String) # define N_(String) (String) #endif -- 2.30.2