This commit is contained in:
SHADOW 2022-12-25 10:45:58 +02:00 committed by GitHub
commit 990779326f
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 0 deletions

View file

@ -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);
}