From a32bb946a0b644395796e24081b6cddc073a9e1e Mon Sep 17 00:00:00 2001 From: darkf <> Date: Mon, 6 Apr 2020 19:47:52 -0700 Subject: [PATCH] Fix some ifdef conditions --- src/common/win32/Mutex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/win32/Mutex.cpp b/src/common/win32/Mutex.cpp index 3e07ca80d..0d3f20b55 100644 --- a/src/common/win32/Mutex.cpp +++ b/src/common/win32/Mutex.cpp @@ -47,7 +47,7 @@ void Mutex::Lock() while(true) { // Grab the lock, letting us look at the variables -#if (_MSC_VER < 1300) // We are not using VC++.NET +#if defined(_MSC_VER) && (_MSC_VER < 1300) // We are not using VC++.NET while(InterlockedCompareExchange((LPVOID*)&m_MutexLock, (LPVOID)1, (LPVOID)0)) #else while(InterlockedCompareExchange((LPLONG)&m_MutexLock, (LONG)1, (LONG)0)) @@ -98,7 +98,7 @@ void Mutex::Lock() void Mutex::Unlock() { // Grab the lock, letting us look at the variables -#if (_MSC_VER < 1300) // We are not using VC++.NET +#if defined(_MSC_VER) && (_MSC_VER < 1300) // We are not using VC++.NET while(InterlockedCompareExchange((LPVOID*)&m_MutexLock, (LPVOID)1, (LPVOID)0)) #else while (InterlockedCompareExchange((LPLONG)&m_MutexLock, (LONG)1, (LONG)0))