diff options
author | Przemyslaw Skibinski <inikep@gmail.com> | 2017-02-10 13:53:58 (GMT) |
---|---|---|
committer | Przemyslaw Skibinski <inikep@gmail.com> | 2017-02-10 13:53:58 (GMT) |
commit | c7b14967ab5c677086aa1427af4c000fa341343c (patch) | |
tree | 00226a4b65333cea8081196d3032e7e7ccb3d1a3 /programs/platform.h | |
parent | 4f261b8281c9b787f27f06fb994cf0ab997bdb73 (diff) | |
download | lz4-c7b14967ab5c677086aa1427af4c000fa341343c.zip lz4-c7b14967ab5c677086aa1427af4c000fa341343c.tar.gz lz4-c7b14967ab5c677086aa1427af4c000fa341343c.tar.bz2 |
updated platform.h
Diffstat (limited to 'programs/platform.h')
-rw-r--r-- | programs/platform.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/programs/platform.h b/programs/platform.h index f1040c0..f9eb81a 100644 --- a/programs/platform.h +++ b/programs/platform.h @@ -59,7 +59,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 @@ -85,7 +85,9 @@ extern "C" { # define PLATFORM_POSIX_VERSION 200112L # else # if defined(__linux__) || defined(__linux) -# define _POSIX_C_SOURCE 200112L /* use feature test macro */ +# ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L /* use feature test macro */ +# endif # endif # include <unistd.h> /* declares _POSIX_VERSION */ # if defined(_POSIX_VERSION) /* POSIX compliant */ |