Extend commit 1617190
on src/compat/posix.h
This commit is contained in:
parent
161719070c
commit
969f0fed74
1 changed files with 12 additions and 2 deletions
|
@ -41,8 +41,18 @@
|
|||
# define TMP_POSIX
|
||||
# endif
|
||||
# if defined(__MINGW32__) || defined(__MINGW64__)
|
||||
# define off_t _off_t
|
||||
# define off64_t _off64_t
|
||||
|
||||
# include <stdint.h>
|
||||
|
||||
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 <stdio.h>
|
||||
# include <string.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue