From 8915dc13de44fed3a076a9fd51eb1ab2b5502d7b Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Tue, 1 Nov 2022 20:14:54 +0100 Subject: avoid __extension__ with clang It seems useless and triggers 'error: expected external declaration' --- include/stdlib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/stdlib.h') diff --git a/include/stdlib.h b/include/stdlib.h index 8642e83..bc93b60 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -16,14 +16,14 @@ #ifndef _FORTIFY_STDLIB_H #define _FORTIFY_STDLIB_H -#ifndef __cplusplus +#if !defined(__cplusplus) && !defined(__clang__) __extension__ #endif #include_next #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) -#ifndef __cplusplus +#if !defined(__cplusplus) && !defined(__clang__) __extension__ #endif #include_next -- cgit v1.3