summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/windows.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/windows.hpp b/src/windows.hpp
index 472b9c1..7cb9291 100644
--- a/src/windows.hpp
+++ b/src/windows.hpp
@@ -40,9 +40,10 @@
#endif
#ifdef ZMQ_HAVE_MINGW32
-#ifndef WINVER
-#define WINVER 0x0501
+#ifdef WINVER
+#undef WINVER
#endif
+#define WINVER 0x0501
#endif
#include <windows.h>