summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@qt.io>2016-11-15 13:19:51 +0100
committerMaurice Kalinowski <maurice.kalinowski@qt.io>2016-11-16 08:13:22 +0000
commit8c3c657f0e8130274618cbe63cb2effcbac27df5 (patch)
tree5bde41009cd7c1fc68158a496cc0a7a6f85fbcc8
parentffcf1ff783827171c3fb911cc90b2d0ecb2931af (diff)
mingw: fix build
Change-Id: I0fbd0d237e83d0a5522a42d5045a893114288c2c Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--src/publishsubscribe/registrylayer_win_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/publishsubscribe/registrylayer_win_p.h b/src/publishsubscribe/registrylayer_win_p.h
index 607aae44..17175920 100644
--- a/src/publishsubscribe/registrylayer_win_p.h
+++ b/src/publishsubscribe/registrylayer_win_p.h
@@ -59,7 +59,9 @@
#if defined(Q_OS_WIN)
// Define win32 version to pull in RegisterWaitForSingleObject and UnregisterWait.
-#define _WIN32_WINNT 0x0500
+#ifndef _WIN32_WINNT
+ #define _WIN32_WINNT 0x0500
+#endif
#include <windows.h>
#define RegistryCallback WAITORTIMERCALLBACK