diff options
author | Yves Orton <demerphq@gmail.com> | 2006-04-27 23:30:00 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-04-28 15:29:30 +0000 |
commit | 7bd379e81ea13d83ac434499c69ddde30e5c4259 (patch) | |
tree | 3757e557c4cfa29634e1679af997c866f4fa10a4 /win32/include | |
parent | ff235dd6d6f5e19e11c9202d4a82fb8e5fbadadd (diff) | |
download | perl-7bd379e81ea13d83ac434499c69ddde30e5c4259.tar.gz |
Merge WinCE and Win32 directories -- Initial patch
Message-ID: <9b18b3110604271430k4de84685jec6535ded195ed94@mail.gmail.com>
p4raw-id: //depot/perl@28003
Diffstat (limited to 'win32/include')
-rw-r--r-- | win32/include/sys/socket.h | 38 |
1 files changed, 38 insertions, 0 deletions
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 <windows.h> +#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 <winsock2.h> |