diff options
Diffstat (limited to 'win32/include/sys/socket.h')
-rw-r--r-- | win32/include/sys/socket.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/win32/include/sys/socket.h b/win32/include/sys/socket.h index c6d0123143..40a5485343 100644 --- a/win32/include/sys/socket.h +++ b/win32/include/sys/socket.h @@ -11,6 +11,13 @@ extern "C" { #endif #ifndef _WINDOWS_ +#ifdef __GNUC__ +#define WIN32_LEAN_AND_MEAN +#ifdef __GNUC__ +#define Win32_Winsock +#endif +#include <windows.h> +#else #define _WINDOWS_ #define FAR @@ -38,8 +45,11 @@ typedef struct _OVERLAPPED { HANDLE hEvent; } OVERLAPPED, *LPOVERLAPPED; +#endif #endif //_WINDOWS_ +#ifndef __GNUC__ #include <winsock.h> +#endif #define ENOTSOCK WSAENOTSOCK #undef HOST_NOT_FOUND |