aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-04-01 02:36:11 -0700
committerAndreas K. Hüttel <dilfridge@gentoo.org>2020-05-08 20:47:55 +0300
commit7aa071b1229dccafcff1ac9418b8b2eb44759045 (patch)
tree3d8d684cb1625753f8ad491596f16b884f4bcb22
parentPR25745, powerpc64-ld overflows string buffer in --stats mode (diff)
downloadbinutils-gdb-7aa071b1229dccafcff1ac9418b8b2eb44759045.tar.gz
binutils-gdb-7aa071b1229dccafcff1ac9418b8b2eb44759045.tar.bz2
binutils-gdb-7aa071b1229dccafcff1ac9418b8b2eb44759045.zip
include: Sync plugin-api.h with GCC
Fix typo in a macro usage. PR lto/94249 * plugin-api.h: Fix a typo. (cherry picked from commit 40bd13ced9c03c74af9d55a98d6e06ddcf11429c) (cherry picked from commit 3053d7a163cef3a17c199026a2f1b97a24030a4f)
-rw-r--r--include/ChangeLog6
-rw-r--r--include/plugin-api.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index ec64261681..2cf472a5df 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,9 @@
+2020-04-01 Martin Liska <mliska@suse.cz>
+ Maciej W. Rozycki <macro@linux-mips.org>
+
+ PR lto/94249
+ * plugin-api.h: Fix a typo.
+
2020-03-25 Martin Liska <mliska@suse.cz>
PR lto/94249
diff --git a/include/plugin-api.h b/include/plugin-api.h
index 864d2bf91a..e317d78478 100644
--- a/include/plugin-api.h
+++ b/include/plugin-api.h
@@ -51,7 +51,7 @@
/* Older GCC releases (<4.6.0) can make detection from glibc macros. */
#if defined(__GLIBC__) || defined(__GNU_LIBRARY__) || defined(__ANDROID__)
#include <endian.h>
-#ifdef _BYTE_ORDER
+#ifdef __BYTE_ORDER
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define PLUGIN_LITTLE_ENDIAN 1
#elif __BYTE_ORDER == __BIG_ENDIAN