Don't use _interlockedExchangeAdd in case of GNU compiler
This commit is contained in:
parent
15b7b01243
commit
1d8729a7aa
@ -806,6 +806,7 @@ struct Mutex::Impl
|
||||
int refcount;
|
||||
};
|
||||
|
||||
#ifndef __GNUC__
|
||||
int _interlockedExchangeAdd(int* addr, int delta)
|
||||
{
|
||||
#if defined _MSC_VER && _MSC_VER >= 1500
|
||||
@ -814,6 +815,7 @@ int _interlockedExchangeAdd(int* addr, int delta)
|
||||
return (int)InterlockedExchangeAdd((long volatile*)addr, delta);
|
||||
#endif
|
||||
}
|
||||
#endif // __GNUC__
|
||||
|
||||
#elif defined __APPLE__
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user