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

Nick Alcock nick.alcock@oracle.com
Tue Jun 30 23:31:06 GMT 2020


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(+)

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
 
-- 
2.27.0.247.g3dff7de930



More information about the Binutils mailing list