From: hniksic Date: Fri, 8 Jul 2005 18:47:34 +0000 (-0700) Subject: [svn] Reintroduced Watcom support. X-Git-Tag: v1.13~750 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=42231a47c3bfa87cd9c103655f7715b1942afc0a [svn] Reintroduced Watcom support. By Gisle Vanem. --- diff --git a/windows/ChangeLog b/windows/ChangeLog index 20e6e089..0083cee6 100644 --- a/windows/ChangeLog +++ b/windows/ChangeLog @@ -1,3 +1,7 @@ +2005-07-08 Gisle Vanem + + * config-compiler.h: Reintroduced Watcom support. + 2005-07-08 Hrvoje Niksic * config.h: Comment out the #undef lines so that they don't undo diff --git a/windows/config-compiler.h b/windows/config-compiler.h index 6c526891..f0bcccc2 100644 --- a/windows/config-compiler.h +++ b/windows/config-compiler.h @@ -149,13 +149,43 @@ so, delete this exception statement from your version. */ #define HAVE_STDBOOL_H 1 #define HAVE_UINT32_T 1 -#undef SIZEOF_LONG_LONG /* avoid redefinition warning */ +#undef SIZEOF_LONG_LONG #define SIZEOF_LONG_LONG 8 #define HAVE__BOOL 1 #define HAVE_USLEEP 1 #define HAVE_STRTOLL 1 + +/* -------------------- */ +/* OpenWatcom section. */ +/* -------------------- */ +#elif defined __WATCOMC__ + +#define OS_TYPE "Windows-Watcom" + +#define LL(n) n##LL + +#define stat_alias _stati64 +#define fstat_alias _fstati64 +#define struct_stat struct _stati64 +#define struct_fstat struct _stati64 + +#ifdef ENABLE_IPV6 +# define NEED_GAI_STRERROR +#endif + +#define HAVE_STDINT_H 1 +#define HAVE_INTTYPES_H 1 +#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 #else # error Your compiler is not supported.