diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp index a4e4fc6e9c..d463a84ef3 100644 --- a/modules/core/src/system.cpp +++ b/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__