]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fix 64-bit file support for MinGW
authorPrzemyslaw Skibinski <inikep@gmail.com>
Fri, 10 Feb 2017 09:36:44 +0000 (10:36 +0100)
committerPrzemyslaw Skibinski <inikep@gmail.com>
Fri, 10 Feb 2017 09:36:44 +0000 (10:36 +0100)
programs/platform.h

index f30528aa97c5702380c02028d29e16805a908559..5801f6ec3b1b4e09296b5e8ccb5a747b3b6b4538 100644 (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