]> sjero.net Git - wget/commitdiff
[svn] iFixes for compilation under MingW. By Gisle Vanem.
authorhniksic <devnull@localhost>
Sat, 26 Feb 2005 14:00:20 +0000 (06:00 -0800)
committerhniksic <devnull@localhost>
Sat, 26 Feb 2005 14:00:20 +0000 (06:00 -0800)
src/ChangeLog
src/mswindows.h

index c80da5a516ca1d58a7a8dc89cd8fe0e4e52fc0be..9c250660e9707c2a5a5a25888b8f519f4ca39ef3 100644 (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>
 
        * utils.c: Use the nnnI64 syntax for __int64 constants under all
index 0b795af4146e1b0bd18160aef7b0b8c1f2974109..08f0c84d0103219f011212638e7c47dcdf26d011 100644 (file)
@@ -83,7 +83,12 @@ so, delete this exception statement from your version.  */
 /* Define a wgint type under Windows. */
 typedef __int64 wgint;
 #define SIZEOF_WGINT 8
+
+#ifdef __GNUC__
+#define WGINT_MAX 9223372036854775807LL
+#else
 #define WGINT_MAX 9223372036854775807I64
+#endif
 
 #define str_to_wgint str_to_int64
 __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)
 #endif
 
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) || defined(__MINGW32__)
 # define struct_stat struct _stati64
 #elif defined(__BORLANDC__)
 # define struct_stat struct stati64