Extend commit 1617190 on src/compat/posix.h

This commit is contained in:
Snaipe 2015-11-14 11:13:43 +01:00
parent 161719070c
commit 969f0fed74

View file

@ -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>