Fix _Atomic definition
This commit is contained in:
parent
fc66a0ec0b
commit
30cf64638a
2
common.h
2
common.h
|
@ -651,7 +651,7 @@ __declspec(dllimport) int __cdecl omp_get_num_procs(void);
|
||||||
#endif
|
#endif
|
||||||
#if (__STDC_VERSION__ >= 201112L)
|
#if (__STDC_VERSION__ >= 201112L)
|
||||||
#ifndef _Atomic
|
#ifndef _Atomic
|
||||||
#define _Atomic volatile
|
#define _Atomic(x) volatile x
|
||||||
#endif
|
#endif
|
||||||
#include <stdatomic.h>
|
#include <stdatomic.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue