summaryrefslogtreecommitdiff
path: root/ace/Asynch_Acceptor.cpp
diff options
context:
space:
mode:
authorgonzo <gonzo@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-08 08:00:12 +0000
committergonzo <gonzo@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-08 08:00:12 +0000
commit907c9dbc4c4dd6ed06de9bc75537550ee192521c (patch)
treee71232d934123b28a8ad06d33681fe7ddecf680f /ace/Asynch_Acceptor.cpp
parente49857037f7f63debb04f3d0ac314bb233dcab75 (diff)
downloadATCD-907c9dbc4c4dd6ed06de9bc75537550ee192521c.tar.gz
Added initial support for Borland C++ Builder
Diffstat (limited to 'ace/Asynch_Acceptor.cpp')
-rw-r--r--ace/Asynch_Acceptor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/ace/Asynch_Acceptor.cpp b/ace/Asynch_Acceptor.cpp
index 8b64a05eb9d..42836e98183 100644
--- a/ace/Asynch_Acceptor.cpp
+++ b/ace/Asynch_Acceptor.cpp
@@ -129,7 +129,7 @@ ACE_Asynch_Acceptor<HANDLER>::accept (size_t bytes_to_read)
template <class HANDLER> void
ACE_Asynch_Acceptor<HANDLER>::handle_accept (const ACE_Asynch_Accept::Result &result)
{
-#if (defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)) || (_WIN32_WINNT >= 0x0400)
+#if (defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) || (defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0))
// Variable for error tracking
int error = 0;
@@ -221,7 +221,7 @@ ACE_Asynch_Acceptor<HANDLER>::handle_accept (const ACE_Asynch_Accept::Result &re
{
this->accept (this->bytes_to_read_);
}
-#endif // defined (ACE_HAS_WINSOCK2) || (_WIN32_WINNT >= 0x0400)
+#endif /* (defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) || (defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)) */
}
template <class HANDLER> int
@@ -237,11 +237,11 @@ ACE_Asynch_Acceptor<HANDLER>::cancel (void)
// All I/O operations that are canceled will complete with the error
// ERROR_OPERATION_ABORTED. All completion notifications for the I/O
// operations will occur normally.
-#if defined (_WIN32_WINNT) && (_WIN32_WINNT >= 0x0400) && defined (_MSC_VER) && (_MSC_VER > 1020)
+#if (defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) && (defined (_MSC_VER) && (_MSC_VER > 1020))
return (int) ::CancelIo (this->listen_handle_);
#else
ACE_NOTSUP_RETURN (-1);
-#endif /* (_WIN32_WINNT) && (_WIN32_WINNT >= 0x0400) */
+#endif /* (defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) && (defined (_MSC_VER) && (_MSC_VER > 1020)) */
}
template <class HANDLER> void
@@ -249,7 +249,7 @@ ACE_Asynch_Acceptor<HANDLER>::parse_address (ACE_Message_Block &message_block,
ACE_INET_Addr &remote_address,
ACE_INET_Addr &local_address)
{
-#if (defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)) || (_WIN32_WINNT >= 0x0400)
+#if (defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) || (defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0))
sockaddr *local_addr = 0;
sockaddr *remote_addr = 0;
int local_size = 0;
@@ -269,7 +269,7 @@ ACE_Asynch_Acceptor<HANDLER>::parse_address (ACE_Message_Block &message_block,
#else
// just in case
errno = ENOTSUP;
-#endif // defined (ACE_HAS_WINSOCK2) || (_WIN32_WINNT >= 0x0400)
+#endif /* (defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) || (defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)) */
}
template <class HANDLER> ACE_HANDLE