summaryrefslogtreecommitdiff
path: root/src/windows.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows.hpp')
-rw-r--r--src/windows.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/windows.hpp b/src/windows.hpp
index 71ecd4f..d765c83 100644
--- a/src/windows.hpp
+++ b/src/windows.hpp
@@ -47,6 +47,11 @@
#include <windows.h>
+// MSVC++ 2005 on Win2000 does not define _WIN32_WINNT.
+#ifndef _WIN32_WINNT
+#define _WIN32_WINNT WINVER
+#endif
+
// Enable winsock (not included when WIN32_LEAN_AND_MEAN is defined).
#if(_WIN32_WINNT >= 0x0400)
#include <winsock2.h>