+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
/* 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);
# 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