From 7bd379e81ea13d83ac434499c69ddde30e5c4259 Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Thu, 27 Apr 2006 23:30:00 +0000 Subject: Merge WinCE and Win32 directories -- Initial patch Message-ID: <9b18b3110604271430k4de84685jec6535ded195ed94@mail.gmail.com> p4raw-id: //depot/perl@28003 --- win32/include/sys/socket.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'win32/include') diff --git a/win32/include/sys/socket.h b/win32/include/sys/socket.h index d2ef6e7752..e13e872fe1 100644 --- a/win32/include/sys/socket.h +++ b/win32/include/sys/socket.h @@ -10,12 +10,50 @@ extern "C" { #endif +#ifndef _WINCE + #define WIN32_LEAN_AND_MEAN #ifdef __GNUC__ # define Win32_Winsock #endif #include +#else +/*_WINCE*/ +#ifndef FAR +#define FAR +#endif + +#define PASCAL __stdcall +#define WINAPI __stdcall + +#undef WORD +typedef int BOOL; +typedef unsigned short WORD; +typedef void* HANDLE; +typedef void* HWND; +typedef int (FAR WINAPI *FARPROC)(); + +typedef unsigned long DWORD; +typedef void *PVOID; + +#define IN +#define OUT + +#ifndef UNDER_CE +typedef struct _OVERLAPPED { + DWORD Internal; + DWORD InternalHigh; + DWORD Offset; + DWORD OffsetHigh; + HANDLE hEvent; +} OVERLAPPED, *LPOVERLAPPED; +#endif + +#undef HOST_NOT_FOUND + +#endif /*_WINCE*/ + /* Too late to include winsock2.h if winsock.h has already been loaded */ #ifndef _WINSOCKAPI_ # include -- cgit v1.2.1