summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/Config.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/IceUtil/Config.h')
-rw-r--r--cpp/include/IceUtil/Config.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/cpp/include/IceUtil/Config.h b/cpp/include/IceUtil/Config.h
index 62a06dd5b0d..5b325886718 100644
--- a/cpp/include/IceUtil/Config.h
+++ b/cpp/include/IceUtil/Config.h
@@ -97,15 +97,13 @@
#if defined(_WIN32)
-//
-// Comment out the following block if you want to run on Windows 9x
-// or Windows NT 3.51.
-//
# ifndef _WIN32_WINNT
//
- // Necessary for TryEnterCriticalSection.
+ // Necessary for TryEnterCriticalSection and some IPv6 macros used in Network.cpp
//
-# define _WIN32_WINNT 0x0400
+# define _WIN32_WINNT 0x0500
+# elif _WIN32_WINNT < 0x0500
+# error "Ice requires headers for Windows 2000 or later."
# endif
# if !defined(ICE_STATIC_LIBS) && defined(_MSC_VER) && (!defined(_DLL) || !defined(_MT))
@@ -130,6 +128,13 @@
// ...: decorated name length exceeded, name was truncated
# pragma warning( disable : 4503 )
# endif
+
+ //
+ // For STLport. Define _STLP_NEW_PLATFORM_SDK if a PSDK newer than the PSDK included with VC6.
+ //
+# if !defined(_STLP_NEW_PLATFORM_SDK) && WINVER > 0x0400
+# define _STLP_NEW_PLATFORM_SDK 1
+# endif
#endif
//