summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/corelib/thread
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/corelib/thread')
-rw-r--r--tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp b/tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp
index 751fd9ce7c..b94d6ee619 100644
--- a/tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp
+++ b/tests/benchmarks/corelib/thread/qmutex/tst_qmutex.cpp
@@ -75,18 +75,12 @@ void NativeMutexUnlock(NativeMutexType *mutex)
}
#endif
#elif defined(Q_OS_WIN)
-# ifndef Q_OS_WINRT
-# define _WIN32_WINNT 0x0400
-# endif
+# define _WIN32_WINNT 0x0400
# include <windows.h>
typedef CRITICAL_SECTION NativeMutexType;
void NativeMutexInitialize(NativeMutexType *mutex)
{
-#ifndef Q_OS_WINRT
InitializeCriticalSection(mutex);
-#else
- InitializeCriticalSectionEx(mutex, 0, 0);
-#endif
}
void NativeMutexDestroy(NativeMutexType *mutex)
{