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

[libc] avoid using #pragma inside macros for better portability

parent efac14db
No related branches found
No related tags found
No related merge requests found
...@@ -27,8 +27,10 @@ ...@@ -27,8 +27,10 @@
// and GNU-based code *** // and GNU-based code ***
#ifdef __FRAMAC__ #ifdef __FRAMAC__
#define __PUSH_FC_STDLIB #pragma fc_stdlib(push,__FILE__) #define __PRAGMA(x) _Pragma(#x)
#define __POP_FC_STDLIB #pragma fc_stdlib(pop) #define __PRAGMA_PUSH(f) __PRAGMA(fc_stdlib(push,f))
#define __PUSH_FC_STDLIB __PRAGMA_PUSH(__FILE__)
#define __POP_FC_STDLIB __PRAGMA(fc_stdlib(pop))
#else #else
#define __PUSH_FC_STDLIB #define __PUSH_FC_STDLIB
#define __POP_FC_STDLIB #define __POP_FC_STDLIB
......
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