mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-07 20:08:41 +03:00
add stdatomic.h for gcc-4.8.5
This commit is contained in:
parent
f2712f4a8f
commit
fce0c16ce1
4 changed files with 58 additions and 0 deletions
|
@ -336,7 +336,11 @@ static void* atomic_exchange_ptr(volatile void** p, void* newval) {
|
|||
return std::atomic_exchange((volatile std::atomic<void*>*)p, newval);
|
||||
}
|
||||
#else
|
||||
#if defined(MI_ATOMIC_FOR_GCC485)
|
||||
#include <gcc-4.8.5-atomic.h>
|
||||
#else
|
||||
#include <stdatomic.h>
|
||||
#endif
|
||||
static void* atomic_exchange_ptr(volatile void** p, void* newval) {
|
||||
return atomic_exchange((volatile _Atomic(void*)*)p, newval);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue