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