Skip to content

Commit 227bb90

Browse files
LysxiaBodigrim
authored andcommitted
Guard #define __STDC_NO_ATOMICS__ by #ifndef
1 parent b9166f8 commit 227bb90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cbits/measure_off.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515

1616
// stdatomic.h has been introduces in gcc 4.9
1717
#if !(__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 9 || defined(__clang_major__))
18+
#ifndef __STDC_NO_ATOMICS__
1819
#define __STDC_NO_ATOMICS__
1920
#endif
21+
#endif
2022

2123
#ifndef __STDC_NO_ATOMICS__
2224
#include <stdatomic.h>

0 commit comments

Comments
 (0)