Skip to content
Snippets Groups Projects
Commit 9dec8f20 authored by Andre Maroneze's avatar Andre Maroneze Committed by Andre Maroneze
Browse files

[Libc] Revert now-unnecessary pragmas to ignore FRAMA_C_MODEL attribute

This reverts commit 3b350317.
parent 524b4637
No related branches found
No related tags found
No related merge requests found
......@@ -34,27 +34,12 @@
#define __POP_FC_STDLIB
#endif
#if defined(__clang__) && defined(__cplusplus)
# define __CLANG_IGNORE_ATTRS_PUSH__ \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Wunknown-attributes\"")
# define __CLANG_IGNORE_ATTRS_POP__ \
_Pragma("clang diagnostic pop")
#else
# define __CLANG_IGNORE_ATTRS_PUSH__
# define __CLANG_IGNORE_ATTRS_POP__
#endif
#ifdef __cplusplus
# define __BEGIN_DECLS \
extern "C" { \
__CLANG_IGNORE_ATTRS_PUSH__
# define __END_DECLS \
__CLANG_IGNORE_ATTRS_POP__ \
}
# define __BEGIN_DECLS extern "C" {
# define __END_DECLS }
#else
# define __BEGIN_DECLS __CLANG_IGNORE_ATTRS_PUSH__
# define __END_DECLS __CLANG_IGNORE_ATTRS_POP__
# define __BEGIN_DECLS
# define __END_DECLS
#endif
#undef __LEAF
......
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