Fixed recent MinGW builds failing due to quick fix on the definitions of off_t and off64_t

This commit is contained in:
Snaipe 2015-11-13 19:31:32 +01:00
parent c77ec23678
commit 161719070c

View file

@ -30,9 +30,19 @@
# undef _WIN32_WINNT
# define _WIN32_WINNT 0x0502
# include <windows.h>
# include <stdint.h>
typedef int32_t cr_off32
typedef int64_t cr_off64
# if defined(__MINGW32__) || defined(__MINGW64__)
# define off_t _off_t
# define off64_t _off64_t
# if !defined(__MINGW64__)
# define off_t cr_off32
# else
# define off_t cr_off64
# endif
# define off64_t cr_off64
# endif
# include <io.h>
# if defined(__MINGW32__) || defined(__MINGW64__)