[19/59] libctf: fix __extension__ with non-GNU C compilers

Message ID 20200630233146.338613-20-nick.alcock@oracle.com
State New
Headers show
Series
  • Deduplicating CTF linker
Related show

Commit Message

H.J. Lu via Binutils June 30, 2020, 11:31 p.m.
We forgot to #define __extension__ to nothing in this case.

libctf/
	* ctf-impl.h [!__GNUC__] (__extension__): Define to nothing.
---
 libctf/ctf-impl.h | 1 +
 1 file changed, 1 insertion(+)

-- 
2.27.0.247.g3dff7de930

Patch

diff --git a/libctf/ctf-impl.h b/libctf/ctf-impl.h
index 4661aa8c7a9..f832c71b97c 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