aboutsummaryrefslogtreecommitdiff
path: root/libctf
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2020-06-02 21:16:15 +0100
committerNick Alcock <nick.alcock@oracle.com>2020-07-22 17:57:40 +0100
commit469e75b621f6ee0b235d5dbe7566483d356d178d (patch)
treea65ec6913ec4a462d8bc53a037ab3501169b1b16 /libctf
parent9c23dfa5aa48c3ec94f643ce25a2b900ad0549c5 (diff)
downloadbinutils-469e75b621f6ee0b235d5dbe7566483d356d178d.zip
binutils-469e75b621f6ee0b235d5dbe7566483d356d178d.tar.gz
binutils-469e75b621f6ee0b235d5dbe7566483d356d178d.tar.bz2
libctf: fix __extension__ with non-GNU C compilers
We forgot to #define __extension__ to nothing in this case. libctf/ * ctf-impl.h [!__GNUC__] (__extension__): Define to nothing.
Diffstat (limited to 'libctf')
-rw-r--r--libctf/ChangeLog4
-rw-r--r--libctf/ctf-impl.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog
index 0be8280..642ed3f 100644
--- a/libctf/ChangeLog
+++ b/libctf/ChangeLog
@@ -1,5 +1,9 @@
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
+ * ctf-impl.h [!__GNUC__] (__extension__): Define to nothing.
+
+2020-07-22 Nick Alcock <nick.alcock@oracle.com>
+
* ctf-archive.c (ctf_archive_count): New.
* libctf.ver: New public function.
diff --git a/libctf/ctf-impl.h b/libctf/ctf-impl.h
index 4661aa8..f832c71 100644
--- a/libctf/ctf-impl.h
+++ b/libctf/ctf-impl.h
@@ -65,6 +65,7 @@ extern "C"
#define _libctf_unlikely_(x) (x)
#define _libctf_unused_
#define _libctf_malloc_
+#define __extension__
#endif