summaryrefslogtreecommitdiff
path: root/ace/config-win32-msvc-10.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/config-win32-msvc-10.h')
-rw-r--r--ace/config-win32-msvc-10.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/ace/config-win32-msvc-10.h b/ace/config-win32-msvc-10.h
index b91e241530d..2a9ce4338f4 100644
--- a/ace/config-win32-msvc-10.h
+++ b/ace/config-win32-msvc-10.h
@@ -51,6 +51,11 @@
#define ACE_STRCASECMP_EQUIVALENT ::_stricmp
#define ACE_STRNCASECMP_EQUIVALENT ::_strnicmp
#define ACE_WCSDUP_EQUIVALENT ::_wcsdup
+#if defined (ACE_HAS_WINCE)
+# define ACE_FILENO_EQUIVALENT ::_fileno
+#else
+# define ACE_FILENO_EQUIVALENT(X) (_get_osfhandle (::_fileno (X)))
+#endif
#ifndef ACE_HAS_EXCEPTIONS
# define ACE_HAS_EXCEPTIONS
@@ -61,7 +66,6 @@
# define ACE_HAS_SIG_ATOMIC_T
# endif /* !Win CE 6.0 or less */
-#define ACE_HAS_STRERROR
#define ACE_LACKS_STRPTIME
// Evaluate this with a WinCE build; maybe things have improved since VC8.
@@ -138,5 +142,12 @@
// explicitly instantiate a template that has ACE_UNIMPLEMENTED_FUNC.
# define ACE_NEEDS_FUNC_DEFINITIONS
+// Windows Vista and Windows Server 2008 and newer do have native condition
+// variables
+#if defined (WIN32_WINNT) && (WIN32_WINNT >= 0x0600)
+# define ACE_HAS_WTHREADS_CONDITION_VARIABLE
+# undef ACE_LACKS_COND_T
+#endif
+
#include /**/ "ace/post.h"
#endif /* ACE_CONFIG_WIN32_MSVC_10_H */