From 469e75b621f6ee0b235d5dbe7566483d356d178d Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Tue, 2 Jun 2020 21:16:15 +0100 Subject: [PATCH] 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. --- libctf/ChangeLog | 4 ++++ libctf/ctf-impl.h | 1 + 2 files changed, 5 insertions(+) diff --git a/libctf/ChangeLog b/libctf/ChangeLog index 0be82801845..642ed3f83c1 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,3 +1,7 @@ +2020-07-22 Nick Alcock + + * ctf-impl.h [!__GNUC__] (__extension__): Define to nothing. + 2020-07-22 Nick Alcock * ctf-archive.c (ctf_archive_count): New. 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.30.2