libctf: fix __extension__ with non-GNU C compilers
authorNick Alcock <nick.alcock@oracle.com>
Tue, 2 Jun 2020 20:16:15 +0000 (21:16 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 16:57:40 +0000 (17:57 +0100)
We forgot to #define __extension__ to nothing in this case.

libctf/
* ctf-impl.h [!__GNUC__] (__extension__): Define to nothing.

libctf/ChangeLog
libctf/ctf-impl.h

index 0be82801845dd4dafdb1f1b3d0e71461050459bb..642ed3f83c1e7c68555d75bf1c6c91faef3408da 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 4661aa8c7a9cf9c56dab969eed72c4afe9276f65..f832c71b97c4c5c719cf29b93fd9799c839d8c30 100644 (file)
@@ -65,6 +65,7 @@ extern "C"
 #define _libctf_unlikely_(x) (x)
 #define _libctf_unused_
 #define _libctf_malloc_
+#define __extension__
 
 #endif