fix 64-bit file support for MinGW

This commit is contained in:
Przemyslaw Skibinski
2017-02-10 10:36:44 +01:00
parent 307989f2e0
commit 429e13099a
+1 -1
View File
@@ -51,7 +51,7 @@ extern "C" {
/* *********************************************************
* Turn on Large Files support (>4GB) for 32-bit Linux/Unix
***********************************************************/
#if !defined(__64BIT__) /* No point defining Large file for 64 bit */
#if !defined(__64BIT__) || defined(__MINGW32__) /* No point defining Large file for 64 bit but MinGW requires it */
# if !defined(_FILE_OFFSET_BITS)
# define _FILE_OFFSET_BITS 64 /* turn off_t into a 64-bit type for ftello, fseeko */
# endif