Fixed recent MinGW builds failing due to quick fix on the definitions of off_t and off64_t
This commit is contained in:
parent
c77ec23678
commit
161719070c
1 changed files with 12 additions and 2 deletions
|
@ -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__)
|
||||
|
|
Loading…
Add table
Reference in a new issue