From c2c9fdb45e95aeed8540383f14cad9a85a186b1b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 1 Nov 2012 22:44:58 +0000 Subject: [PATCH] gold/ * system.h: Move inclusion of to after in [ENABLE_NLS] section, and separately at top of [!ENABLE_NLS] section. --- gold/ChangeLog | 3 +++ gold/system.h | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index 176e1911c5c..edb103dc134 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -8,6 +8,9 @@ 2012-11-01 Roland McGrath + * system.h: Move inclusion of to after in + [ENABLE_NLS] section, and separately at top of [!ENABLE_NLS] section. + * nacl.cc: Include "libiberty.h" for vasprintf declaration. 2012-11-01 Roland McGrath diff --git a/gold/system.h b/gold/system.h index ce2d93979f6..3e6fe1d4cb1 100644 --- a/gold/system.h +++ b/gold/system.h @@ -33,12 +33,10 @@ # define _LIBGETTEXT_H #endif -// Always include first to avoid conflicts with the macros -// used when ENABLE_NLS is not defined. -#include - #ifdef ENABLE_NLS +// On some systems, things go awry when comes after . # include +# include # define _(String) gettext (String) # ifdef gettext_noop # define N_(String) gettext_noop (String) @@ -46,6 +44,8 @@ # define N_(String) (String) # endif #else +// Include first to avoid conflicts with these macros. +# include # define gettext(Msgid) (Msgid) # define dgettext(Domainname, Msgid) (Msgid) # define dcgettext(Domainname, Msgid, Category) (Msgid) -- 2.30.2