mirror of
https://github.com/reactos/CMake.git
synced 2024-12-02 00:26:18 +00:00
libuv: fix atomic ops compilation with xlclang
This commit is contained in:
parent
1699f5c231
commit
0d489fab19
@ -37,7 +37,7 @@ UV_UNUSED(static int cmpxchgi(int* ptr, int oldval, int newval)) {
|
||||
: "r" (newval), "0" (oldval)
|
||||
: "memory");
|
||||
return out;
|
||||
#elif defined(_AIX) && defined(__xlC__)
|
||||
#elif defined(_AIX) && (defined(__xlC__) || defined(__ibmxl__))
|
||||
const int out = (*(volatile int*) ptr);
|
||||
__compare_and_swap(ptr, &oldval, newval);
|
||||
return out;
|
||||
@ -63,7 +63,7 @@ UV_UNUSED(static long cmpxchgl(long* ptr, long oldval, long newval)) {
|
||||
: "r" (newval), "0" (oldval)
|
||||
: "memory");
|
||||
return out;
|
||||
#elif defined(_AIX) && defined(__xlC__)
|
||||
#elif defined(_AIX) && (defined(__xlC__) || defined(__ibmxl__))
|
||||
const long out = (*(volatile int*) ptr);
|
||||
# if defined(__64BIT__)
|
||||
__compare_and_swaplp(ptr, &oldval, newval);
|
||||
|
Loading…
Reference in New Issue
Block a user