X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Ffcgios.h;h=80fe006489db55a9f5ce3bf1bbfd7e415d705272;hb=60a09042dc4d66f5d2c1c81f26dc534dbce8e353;hp=c6a5e5ee54bfe00190f7cae57dfe6adca74b7ff1;hpb=1dd5d7a82065186542679fb0fc303830a4a9e0e2;p=catagits%2Ffcgi2.git diff --git a/include/fcgios.h b/include/fcgios.h index c6a5e5e..80fe006 100755 --- a/include/fcgios.h +++ b/include/fcgios.h @@ -20,38 +20,31 @@ #include "fcgi_config.h" -#ifdef _WIN32 -#include -#endif - #ifdef HAVE_SYS_TIME_H #include #endif +#ifdef HAVE_WINDOWS_H +#include +#endif + #if defined (c_plusplus) || defined (__cplusplus) extern "C" { #endif - #ifdef _WIN32 - #define OS_Errno GetLastError() #define OS_SetErrno(err) SetLastError(err) - #ifndef DLLAPI #define DLLAPI __declspec(dllimport) #endif - #ifndef O_NONBLOCK #define O_NONBLOCK 0x0004 /* no delay */ #endif - #else /* !_WIN32 */ - #define DLLAPI #define OS_Errno errno #define OS_SetErrno(err) errno = (err) - #endif /* !_WIN32 */ /* This is the initializer for a "struct timeval" used in a select() call