summaryrefslogtreecommitdiff
path: root/src/mingw-compat.h
blob: e3805dff27023ffc98b1e8bb5f8e71e613f134f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef INCLUDE_mingw_compat__
#define INCLUDE_mingw_compat__

#if defined(__MINGW32__)

/* use a 64-bit file offset type */
# define off_t off64_t
# define lseek _lseeki64
# define stat _stati64
# define fstat _fstati64

#endif

#endif /* INCLUDE_mingw_compat__ */