1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] iFixes for compilation under MingW. By Gisle Vanem.

This commit is contained in:
hniksic 2005-02-26 06:00:20 -08:00
parent 0c4e666cb6
commit 00dc3157e5
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-02-26 Gisle Vanem <giva@bgnett.no>
* utils.c: Use the nnnLL syntax under GCC. Define struct_stat to
struct _stati64 under __MINGW32__ as well as under MS VC.
2005-02-26 Hrvoje Niksic <hniksic@xemacs.org> 2005-02-26 Hrvoje Niksic <hniksic@xemacs.org>
* utils.c: Use the nnnI64 syntax for __int64 constants under all * utils.c: Use the nnnI64 syntax for __int64 constants under all

View File

@ -83,7 +83,12 @@ so, delete this exception statement from your version. */
/* Define a wgint type under Windows. */ /* Define a wgint type under Windows. */
typedef __int64 wgint; typedef __int64 wgint;
#define SIZEOF_WGINT 8 #define SIZEOF_WGINT 8
#ifdef __GNUC__
#define WGINT_MAX 9223372036854775807LL
#else
#define WGINT_MAX 9223372036854775807I64 #define WGINT_MAX 9223372036854775807I64
#endif
#define str_to_wgint str_to_int64 #define str_to_wgint str_to_int64
__int64 str_to_int64 (const char *, char **, int); __int64 str_to_int64 (const char *, char **, int);
@ -99,7 +104,7 @@ __int64 str_to_int64 (const char *, char **, int);
# define fstat(fd, buf) _fstati64 (fd, buf) # define fstat(fd, buf) _fstati64 (fd, buf)
#endif #endif
#if defined(_MSC_VER) #if defined(_MSC_VER) || defined(__MINGW32__)
# define struct_stat struct _stati64 # define struct_stat struct _stati64
#elif defined(__BORLANDC__) #elif defined(__BORLANDC__)
# define struct_stat struct stati64 # define struct_stat struct stati64