Commit abb5edb 1 parent 420f2a7 commit abb5edb Copy full SHA for abb5edb
File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- #if !defined(__STDC_NO_ATOMICS__ )
1
+ #if __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS__ )
2
2
#include <stdatomic.h>
3
3
#endif
4
4
#include <stdbool.h>
Original file line number Diff line number Diff line change 1
- #if !defined(__STDC_NO_ATOMICS__ )
1
+ #if __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS__ )
2
2
#include <stdatomic.h>
3
3
#endif
4
4
#include <stdbool.h>
Original file line number Diff line number Diff line change 1
1
#include <assert.h>
2
2
#include <errno.h>
3
- #if !defined(__STDC_NO_ATOMICS__ )
3
+ #if __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS__ )
4
4
#include <stdatomic.h>
5
5
#endif
6
6
#include <stdbool.h>
14
14
15
15
#include "mem.h"
16
16
17
- #if defined(__STDC_NO_ATOMICS__ )
17
+ #if __STDC_VERSION__ < 201112L || defined(__STDC_NO_ATOMICS__ )
18
18
static size_t
19
19
atomic_fetch_sub (size_t * p , size_t diff )
20
20
{
Original file line number Diff line number Diff line change 177
177
(a != 0 && (SIZE_MAX / a < b) ? 1 : (*c = a * b, 0))
178
178
#endif
179
179
180
- #if defined(__STDC_NO_ATOMICS__ )
180
+ #if __STDC_VERSION__ < 201112L || defined(__STDC_NO_ATOMICS__ )
181
181
#define _Atomic
182
182
#define atomic_uint unsigned int
183
183
#endif
You can’t perform that action at this time.
0 commit comments