From b2f430898053258622eebee3328f03441367a32c Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 27 Oct 2009 16:38:42 +0000 Subject: Fix Pelles C Win32 target compilation issues --- lib/setup.h | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'lib/setup.h') diff --git a/lib/setup.h b/lib/setup.h index 7efc6104c..5f0de9050 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -255,19 +255,10 @@ #include #endif -/* - * PellesC kludge section (yikes); - * - It has 'ssize_t', but it is in . The way the headers - * on Win32 are included, forces me to include this header here. - * - sys_nerr, EINTR is missing in v4.0 or older. - */ #ifdef __POCC__ - #include - #include - #if (__POCC__ <= 400) - #define sys_nerr EILSEQ /* for strerror.c */ - #define EINTR -1 /* for select.c */ - #endif +# include +# include +# define sys_nerr EILSEQ #endif /* @@ -427,7 +418,7 @@ * are available if PSDK is properly installed. */ -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(__POCC__) # if !defined(HAVE_WINSOCK2_H) || ((_MSC_VER < 1300) && !defined(IPPROTO_ESP)) # undef HAVE_STRUCT_SOCKADDR_STORAGE # endif @@ -438,7 +429,7 @@ * defined in ws2tcpip.h as well as to provide IPv6 support. */ -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(__POCC__) # if !defined(HAVE_WS2TCPIP_H) || ((_MSC_VER < 1300) && !defined(INET6_ADDRSTRLEN)) # undef HAVE_FREEADDRINFO # undef HAVE_GETADDRINFO -- cgit v1.2.1