Skip to content
Snippets Groups Projects
Commit 8a17440e authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[libc] Don't keep needless pragmas when cplusplus is not activated.

Fixes #717
parent 53c35ea8
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#define __POP_FC_STDLIB #define __POP_FC_STDLIB
#endif #endif
#ifdef __clang__ #if defined(__clang__) && defined(__cplusplus)
# define __CLANG_IGNORE_ATTRS_PUSH__ \ # define __CLANG_IGNORE_ATTRS_PUSH__ \
_Pragma("clang diagnostic push") \ _Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Wunknown-attributes\"") _Pragma("clang diagnostic ignored \"-Wunknown-attributes\"")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment