Don't use _interlockedExchangeAdd in case of GNU compiler

pull/91/head
Andrey Kamaev 12 years ago
parent 15b7b01243
commit 1d8729a7aa
  1. 2
      modules/core/src/system.cpp

@ -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…
Cancel
Save