Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
614538bc
Commit
614538bc
authored
8 months ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[libc] avoid using #pragma inside macros for better portability
parent
efac14db
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
share/libc/features.h
+4
-2
4 additions, 2 deletions
share/libc/features.h
with
4 additions
and
2 deletions
share/libc/features.h
+
4
−
2
View file @
614538bc
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment