]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gold/
authorRoland McGrath <roland@gnu.org>
Wed, 7 Nov 2012 17:33:49 +0000 (17:33 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 7 Nov 2012 17:33:49 +0000 (17:33 +0000)
* system.h: Move inclusion of <clocale> to after <libintl.h> in
[ENABLE_NLS] section, and separately at top of [!ENABLE_NLS] section.

gold/ChangeLog
gold/gold.h

index f51dfeb79740fde31e729fcd8cdd4a078da8deaa..efe9e62204fa9bfccd435a647b90db2fd1cad95d 100644 (file)
@@ -1,5 +1,8 @@
 2012-11-07  Roland McGrath  <mcgrathr@google.com>
 
+       * gold.h: Move inclusion of <clocale> to after <libintl.h> in
+       [ENABLE_NLS] section, and separately at top of [!ENABLE_NLS] section.
+
        * descriptors.cc (set_close_on_exec): Add ATTRIBUTE_UNUSED to the
        parameter, which is unused in the [!F_SETFD] case.
 
index 9aa7cf3506ced351a33451bf088d33be203bc33a..df7414c4f1ddd82ec31ffb853a83e256a6246724 100644 (file)
 # define _LIBGETTEXT_H
 #endif
 
-// Always include <clocale> first to avoid conflicts with the macros
-// used when ENABLE_NLS is not defined.
-#include <clocale>
-
 #ifdef ENABLE_NLS
+// On some systems, things go awry when <libintl.h> comes after <clocale>.
 # include <libintl.h>
+# include <clocale>
 # define _(String) gettext (String)
 # ifdef gettext_noop
 #  define N_(String) gettext_noop (String)
@@ -55,6 +53,8 @@
 #  define N_(String) (String)
 # endif
 #else
+// Include <clocale> first to avoid conflicts with these macros.
+# include <clocale>
 # define gettext(Msgid) (Msgid)
 # define dgettext(Domainname, Msgid) (Msgid)
 # define dcgettext(Domainname, Msgid, Category) (Msgid)