From 8a17440ed4b55f5628613ecc403deb6a3145bc7c Mon Sep 17 00:00:00 2001 From: Virgile Prevosto <virgile.prevosto@m4x.org> Date: Fri, 17 Jan 2020 19:29:23 +0100 Subject: [PATCH] [libc] Don't keep needless pragmas when cplusplus is not activated. Fixes #717 --- share/libc/features.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/libc/features.h b/share/libc/features.h index 5c54040b141..84f5d0e2f23 100644 --- a/share/libc/features.h +++ b/share/libc/features.h @@ -34,7 +34,7 @@ #define __POP_FC_STDLIB #endif -#ifdef __clang__ +#if defined(__clang__) && defined(__cplusplus) # define __CLANG_IGNORE_ATTRS_PUSH__ \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Wunknown-attributes\"") -- GitLab