Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
406f697d
Commit
406f697d
authored
Jun 30, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_atomic.h: cosmetics for clang workaround
parent
70e724c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
include/vlc_atomic.h
include/vlc_atomic.h
+3
-5
No files found.
include/vlc_atomic.h
View file @
406f697d
...
@@ -26,11 +26,9 @@
...
@@ -26,11 +26,9 @@
* Atomic operations do not require locking, but they are not very powerful.
* Atomic operations do not require locking, but they are not very powerful.
*/
*/
/* clang version < 7 lacks the header but supports atomics - work-around */
/* Clang version < 7 lacks the stdatomic.h header but supports atomics */
#if defined(__clang__)
#if defined(__clang__) && __clang_major__ >= 4 && !__has_include(<stdatomic.h>)
#if __clang_major__ >= 4 && !__has_include(<stdatomic.h>)
# define __STDC_NO_ATOMICS__ 1
#define __STDC_NO_ATOMICS__ 1
#endif
#endif
#endif
# ifndef __cplusplus
# ifndef __cplusplus
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment