X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=windows%2Fconfig-compiler.h;h=033f470dd5b830ddf20bbee68e5dc2d0aa810260;hp=a4435ef99075883ae370cf04f363a99c049a2102;hb=336c0de30166c540bd744c6faacf10a3c5373cfb;hpb=14ee3a6c03250b73bf3a0690aa4788edc9cedbd8 diff --git a/windows/config-compiler.h b/windows/config-compiler.h index a4435ef9..033f470d 100644 --- a/windows/config-compiler.h +++ b/windows/config-compiler.h @@ -89,8 +89,16 @@ so, delete this exception statement from your version. */ #define SIZEOF_LONG_LONG 8 #define HAVE_INTPTR_T 1 #define HAVE_UINTPTR_T 1 - #define HAVE_STRTOLL 1 + +/* MingW needs _WIN32_WINNT==0x0501 defined to pull in getaddrinfo() + * and freeaddrinfo() etc. + */ +#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0501) +#undef _WIN32_WINNT +#define _WIN32_WINNT 0x0501 +#endif + /* -------------------- */ /* MS Visual C section. */ @@ -115,9 +123,10 @@ so, delete this exception statement from your version. */ #if _MSC_VER >= 1400 #pragma warning ( disable : 4996 ) #define _CRT_SECURE_NO_DEPRECATE -#define HAVE_SYS_UTIME_H 1 -#undef HAVE_UTIME_H #endif + +#undef HAVE_UTIME_H /* no */ + /* ------------------ */ /* Borland C section. */ @@ -158,12 +167,16 @@ so, delete this exception statement from your version. */ #define HAVE_STDBOOL_H 1 #define HAVE_UINT32_T 1 +#define HAVE_UINTPTR_T 1 +#define HAVE_INTPTR_T 1 + #undef SIZEOF_LONG_LONG #define SIZEOF_LONG_LONG 8 #define HAVE__BOOL 1 #define HAVE_USLEEP 1 #define HAVE_STRTOLL 1 +#undef HAVE_UTIME_H /* no */ /* -------------------- */ @@ -186,15 +199,25 @@ so, delete this exception statement from your version. */ #define HAVE_STDINT_H 1 #define HAVE_INTTYPES_H 1 -#define HAVE_STDBOOL_H 1 + +/* Watcom 1.6 do have , but definition of '_Bool' is missing! */ +/* #define HAVE_STDBOOL_H 1 */ #define HAVE_STRTOLL 1 #define HAVE_UINT32_T 1 -#define HAVE_SYS_UTIME_H 1 #undef HAVE_UTIME_H #undef socklen_t /* avoid clash with */ #undef SIZEOF_LONG_LONG #define SIZEOF_LONG_LONG 8 + +/* OpenWatcom needs _WIN32_WINNT==0x0501 defined to pull in getaddrinfo() + * and freeaddrinfo() etc. + */ +#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0501) +#undef _WIN32_WINNT +#define _WIN32_WINNT 0x0501 +#endif + #else # error Your compiler is not supported.