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.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/cpp/include/IceUtil/Config.h b/cpp/include/IceUtil/Config.h
index 9a86a09d82c..a0900d114f9 100644
--- a/cpp/include/IceUtil/Config.h
+++ b/cpp/include/IceUtil/Config.h
@@ -13,6 +13,9 @@
#if defined(WIN32)
+// Necessary for TryEnterCriticalSection
+# define _WIN32_WINNT 0x0400
+
# if !defined(_UNICODE)
# error "Only UNICODE libraries can be used with Ice!"
# endif
@@ -62,10 +65,13 @@
#include <iostream>
#include <sstream>
-//
-// We need Threads/C++
-//
-#include <JTC/JTC.h>
+#ifndef WIN32
+# ifndef _REENTRANT
+# define _REENTRANT 1
+# endif
+# include <pthread.h>
+# include <errno.h>
+#endif
//
// By deriving from this class, other classes are made non-copyable