Skip to content

Commit

Permalink
Enable 64 bit IO support on MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
starg2 committed Apr 5, 2021
1 parent e257a40 commit 2d4b8d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions timidity/sysdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,13 @@ typedef long off_size_t;
# define lseek _lseek
typedef off_t off_size_t; /* off_t is 32-bit signed */
# endif /* _MSC_VER >= 1400 */
#elif defined(__MINGW32__)
# include <io.h>
# define fseeko _fseeki64
# define ftello _ftelli64
# define lseek _lseeki64
typedef int64 off_size_t;
# define HAVE_OFF_SIZE_T_64BIT 1
#elif defined(_LARGEFILE_SOURCE) || \
(defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) || \
(defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || \
Expand Down

0 comments on commit 2d4b8d6

Please sign in to comment.