From 8a62005a2d840e4d91440c75ecc45de4c491368f Mon Sep 17 00:00:00 2001 From: Deomid Ryabkov Date: Wed, 13 Apr 2016 14:19:35 +0300 Subject: [PATCH] Use _stati64 on mingw64 in 32-bit mode cesanta/mongoose#644, h/t @spuschhof PUBLISHED_FROM=2df259156e347b941a75008ce07ea4fc2584dc2a --- mongoose.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoose.h b/mongoose.h index 3ffa9dbf..348af899 100644 --- a/mongoose.h +++ b/mongoose.h @@ -209,7 +209,7 @@ typedef uint32_t in_addr_t; #define INT64_FMT "I64d" #define INT64_X_FMT "I64x" #define SIZE_T_FMT "Iu" -#ifdef __MINGW32__ +#if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) typedef struct stat cs_stat_t; #else typedef struct _stati64 cs_stat_t;