Commit 569df08d authored by Felix Paul Kühne's avatar Felix Paul Kühne

atomics: fix compilation with GCC

parent 73ef184d
......@@ -27,9 +27,11 @@
*/
/* clang version < 7 lacks the header but supports atomics - work-around */
#if __clang__ && __clang_major__ >= 4 && !__has_include(<stdatomic.h>)
#if defined(__clang__)
#if __clang_major__ >= 4 && !__has_include(<stdatomic.h>)
#define __STDC_NO_ATOMICS__ 1
#endif
#endif
# ifndef __cplusplus
# if (__STDC_VERSION__ >= 201112L) && !defined (__STDC_NO_ATOMICS__)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment