From 969f0fed747fb4713a88db7effa10f51128a7a22 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Sat, 14 Nov 2015 11:13:43 +0100 Subject: [PATCH] Extend commit 1617190 on src/compat/posix.h --- src/compat/posix.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/compat/posix.h b/src/compat/posix.h index 4468f63..c3d94a5 100644 --- a/src/compat/posix.h +++ b/src/compat/posix.h @@ -41,8 +41,18 @@ # define TMP_POSIX # endif # if defined(__MINGW32__) || defined(__MINGW64__) -# define off_t _off_t -# define off64_t _off64_t + +# include + +typedef int32_t cr_off32 +typedef int64_t cr_off64 + +# if !defined(__MINGW64__) +# define off_t cr_off32 +# else +# define off_t cr_off64 +# endif +# define off64_t cr_off64 # endif # include # include