summaryrefslogtreecommitdiff
path: root/ACE/ace/config-win32-common.h
diff options
context:
space:
mode:
authorErik Sohns <esohns@users.noreply.github.com>2023-01-22 17:38:34 +0100
committerGitHub <noreply@github.com>2023-01-22 17:38:34 +0100
commit9e18d338ec598e1a8da6d32a0fba5a20c76978f7 (patch)
tree045f42001bd4e15cf8285686798fe47acd2f2b60 /ACE/ace/config-win32-common.h
parent8b6ad82dc91f728cea2c9e86a17e5969a3338fcc (diff)
parent8ab31e3e5bb8c09a9c326a54545f4cb475345a78 (diff)
downloadATCD-9e18d338ec598e1a8da6d32a0fba5a20c76978f7.tar.gz
Merge branch 'master' into message_queue_ex_get_queue
Diffstat (limited to 'ACE/ace/config-win32-common.h')
-rw-r--r--ACE/ace/config-win32-common.h116
1 files changed, 22 insertions, 94 deletions
diff --git a/ACE/ace/config-win32-common.h b/ACE/ace/config-win32-common.h
index a22eb51989a..f22fbb0f063 100644
--- a/ACE/ace/config-win32-common.h
+++ b/ACE/ace/config-win32-common.h
@@ -8,13 +8,6 @@
#error Use config-win32.h in config.h instead of this header
#endif /* ACE_CONFIG_WIN32_H */
-// Windows Mobile (CE) stuff is primarily further restrictions to what's
-// in the rest of this file. Also, it defined ACE_HAS_WINCE, which is used
-// in this file.
-#if defined (_WIN32_WCE)
-# include "ace/config-WinCE.h"
-#endif /* _WIN32_WCE */
-
#if defined(__MINGW32__)
// When using the --std=c++0x option with MinGW the compiler omits defining
// the following required macros (at least with the GCC 4.6.2 version)
@@ -31,7 +24,7 @@
#endif
// Complain if WIN32 is not already defined.
-#if !defined (WIN32) && !defined (ACE_HAS_WINCE)
+#if !defined (WIN32)
# error Please define WIN32 in your project settings.
#endif
@@ -106,8 +99,6 @@
# define ACE_MT_SAFE 1
#endif
-// On winCE these classes do not exist. If they are
-// introduced in the future, no changes need to be made
#if defined (ABOVE_NORMAL_PRIORITY_CLASS) && \
defined (BELOW_NORMAL_PRIORITY_CLASS) && \
defined (HIGH_PRIORITY_CLASS) && \
@@ -210,18 +201,14 @@
# define ACE_IOV_MAX 64
#endif /* ACE_IOV_MAX */
-#if !defined (ACE_HAS_WINCE)
// Platform supports pread() and pwrite()
-# define ACE_HAS_WTOF
-#endif /* ! ACE_HAS_WINCE */
+#define ACE_HAS_WTOF
#define ACE_HAS_P_READ_WRITE
-#if !defined (ACE_HAS_WINCE)
-# define ACE_HAS_DIRECT_H
-# define ACE_HAS_PROCESS_H
-# define ACE_HAS_IO_H
-#endif /* ! ACE_HAS_WINCE */
+#define ACE_HAS_DIRECT_H
+#define ACE_HAS_PROCESS_H
+#define ACE_HAS_IO_H
#define ACE_DEFAULT_THREAD_PRIORITY 0
@@ -417,8 +404,6 @@
# include /**/ <afxwin.h> /* He is doing MFC */
// Windows.h will be included via afxwin.h->afx.h->afx_ver_.h->afxv_w32.h
// #define _INC_WINDOWS // Prevent winsock.h from including windows.h
-#elif defined (ACE_HAS_WINCE)
-# include /**/ <windows.h>
#endif
#if !defined (_INC_WINDOWS) /* Already include windows.h ? */
@@ -448,68 +433,22 @@
# if !defined (_WINSOCK2API_)
// will also include windows.h, if not present
# include /**/ <winsock2.h>
-// WinCE 4 doesn't define the Exxx values without the WSA prefix, so do that
-// here. This is all lifted from the #if 0'd out part of winsock2.h.
-# if defined (_WIN32_WCE) && (_WIN32_WCE < 0x600)
-# define EWOULDBLOCK WSAEWOULDBLOCK
-# define EINPROGRESS WSAEINPROGRESS
-# define EALREADY WSAEALREADY
-# define ENOTSOCK WSAENOTSOCK
-# define EDESTADDRREQ WSAEDESTADDRREQ
-# define EMSGSIZE WSAEMSGSIZE
-# define EPROTOTYPE WSAEPROTOTYPE
-# define ENOPROTOOPT WSAENOPROTOOPT
-# define EPROTONOSUPPORT WSAEPROTONOSUPPORT
-# define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
-# define EOPNOTSUPP WSAEOPNOTSUPP
-# define EPFNOSUPPORT WSAEPFNOSUPPORT
-# define EAFNOSUPPORT WSAEAFNOSUPPORT
-# define EADDRINUSE WSAEADDRINUSE
-# define EADDRNOTAVAIL WSAEADDRNOTAVAIL
-# define ENETDOWN WSAENETDOWN
-# define ENETUNREACH WSAENETUNREACH
-# define ENETRESET WSAENETRESET
-# define ECONNABORTED WSAECONNABORTED
-# define ECONNRESET WSAECONNRESET
-# define ENOBUFS WSAENOBUFS
-# define EISCONN WSAEISCONN
-# define ENOTCONN WSAENOTCONN
-# define ESHUTDOWN WSAESHUTDOWN
-# define ETOOMANYREFS WSAETOOMANYREFS
-# define ETIMEDOUT WSAETIMEDOUT
-# define ECONNREFUSED WSAECONNREFUSED
-# define ELOOP WSAELOOP
-# define ENAMETOOLONG WSAENAMETOOLONG
-# define EHOSTDOWN WSAEHOSTDOWN
-# define EHOSTUNREACH WSAEHOSTUNREACH
-# define ENOTEMPTY WSAENOTEMPTY
-# define EPROCLIM WSAEPROCLIM
-# define EUSERS WSAEUSERS
-# define EDQUOT WSAEDQUOT
-# define ESTALE WSAESTALE
-# define EREMOTE WSAEREMOTE
-# endif /* (_WIN32_WCE) && (_WIN32_WCE < 0x600) */
# endif /* _WINSOCK2API */
# if defined (ACE_HAS_FORE_ATM_WS2)
# include /**/ <ws2atm.h>
# endif /*ACE_HAS_FORE_ATM_WS2 */
-// CE doesn't have Microsoft Winsock 2 extensions
-# if !defined _MSWSOCK_ && !defined (ACE_HAS_WINCE)
+# if !defined _MSWSOCK_
# include /**/ <mswsock.h>
# endif /* _MSWSOCK_ */
# if defined (_MSC_VER)
-# if defined (ACE_HAS_WINCE)
-# pragma comment(lib, "ws2.lib")
-# else
-# pragma comment(lib, "ws2_32.lib")
-# pragma comment(lib, "mswsock.lib")
-# if defined (ACE_HAS_IPV6)
-# pragma comment(lib, "iphlpapi.lib")
-# endif
-# endif /* ACE_HAS_WINCE */
+# pragma comment(lib, "ws2_32.lib")
+# pragma comment(lib, "mswsock.lib")
+# if defined (ACE_HAS_IPV6)
+# pragma comment(lib, "iphlpapi.lib")
+# endif
# endif /* _MSC_VER */
# define ACE_WSOCK_VERSION 2, 0
@@ -521,7 +460,7 @@
// PharLap ETS has its own winsock lib, so don't grab the one
// supplied with the OS.
-# if defined (_MSC_VER) && !defined (_WIN32_WCE) && !defined (ACE_HAS_PHARLAP)
+# if defined (_MSC_VER) && !defined (ACE_HAS_PHARLAP)
# pragma comment(lib, "wsock32.lib")
# endif /* _MSC_VER */
@@ -549,11 +488,9 @@
# define ACE_HAS_IP_MULTICAST
#endif /* ACE_HAS_WINSOCK2 */
-#if !defined (ACE_HAS_WINCE)
-# define ACE_HAS_INTERLOCKED_EXCHANGEADD
-#endif
+#define ACE_HAS_INTERLOCKED_EXCHANGEADD
-#if !defined (ACE_HAS_WINCE) && !defined (ACE_HAS_PHARLAP)
+#if !defined (ACE_HAS_PHARLAP)
# if _WIN32_WINNT >= 0x400
# define ACE_HAS_SIGNAL_OBJECT_AND_WAIT
@@ -563,7 +500,7 @@
# define ACE_HAS_CANCEL_IO
# define ACE_HAS_WIN32_OVERLAPPED_IO
# define ACE_HAS_WIN32_NAMED_PIPES
-#endif /* !defined (ACE_HAS_WINCE) && !ACE_HAS_PHARLAP */
+#endif /* !ACE_HAS_PHARLAP */
#if !defined (ACE_SEH_DEFAULT_EXCEPTION_HANDLING_ACTION)
# define ACE_SEH_DEFAULT_EXCEPTION_HANDLING_ACTION EXCEPTION_CONTINUE_SEARCH
@@ -596,9 +533,6 @@
#define ACE_HAS_NONCONST_SWAB
#define ACE_HAS_INT_SWAB
-// gethostbyaddr does not handle IPv6-mapped-IPv4 addresses
-#define ACE_HAS_BROKEN_GETHOSTBYADDR_V4MAPPED
-
#if defined (ACE_WIN64)
// Data must be aligned on 8-byte boundaries, at a minimum.
# define ACE_MALLOC_ALIGN 8
@@ -610,23 +544,17 @@
# define ACE_DISABLES_THREAD_LIBRARY_CALLS 0
#endif /* ACE_DISABLES_THREAD_LIBRARY_CALLS */
-#if !defined (ACE_HAS_WINCE) && !defined (ACE_HAS_PHARLAP)
+#if !defined (ACE_HAS_PHARLAP)
# define ACE_HAS_LOG_MSG_NT_EVENT_LOG
-#endif /* !ACE_HAS_WINCE && !ACE_HAS_PHARLAP */
+#endif /* !ACE_HAS_PHARLAP */
-#if !defined (ACE_HAS_WINCE)
-# define ACE_HAS_LLSEEK
-#endif /* !ACE_HAS_WINCE */
+#define ACE_HAS_LLSEEK
// Needed for obtaining the MAC address
-// I dont believe this will work under CE, notice the
-// check for ACE_HAS_WINCE.
-# if !defined (ACE_HAS_WINCE)
-# include <nb30.h>
-# if defined (_MSC_VER)
-# pragma comment(lib, "netapi32.lib") // needed for obtaing MACaddress
-# endif
-# endif /* !ACE_HAS_WINCE */
+#include <nb30.h>
+#if defined (_MSC_VER)
+# pragma comment(lib, "netapi32.lib") // needed for obtaing MACaddress
+#endif
#if !defined (WINVER)
# define WINVER 0x0400 // pretend it's at least WinNT 4.0