diff options
author | Przemyslaw Skibinski <inikep@gmail.com> | 2016-12-21 10:53:16 (GMT) |
---|---|---|
committer | Przemyslaw Skibinski <inikep@gmail.com> | 2016-12-21 10:53:16 (GMT) |
commit | 2fd7eb554a17ce4815c60b29a226130e0ea448d6 (patch) | |
tree | 22dcc6b2e9f318458d4a3fb3999fb36c15caf711 /programs/lz4io.c | |
parent | 3c6ce9c66526f0f6e3c200ddb64db2c66be5e031 (diff) | |
download | lz4-2fd7eb554a17ce4815c60b29a226130e0ea448d6.zip lz4-2fd7eb554a17ce4815c60b29a226130e0ea448d6.tar.gz lz4-2fd7eb554a17ce4815c60b29a226130e0ea448d6.tar.bz2 |
fixed Visual Studio compilation
Diffstat (limited to 'programs/lz4io.c')
-rw-r--r-- | programs/lz4io.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c index df3ed41..ca3cea5 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -47,12 +47,20 @@ #include "lz4hc.h" /* still required for legacy format */ #include "lz4frame.h" +/* ************************************** +* Compiler Options +****************************************/ +#if defined(_MSC_VER) && (_MSC_VER >= 1400) /* Avoid MSVC fseek()'s 2GiB barrier */ +# define fseek _fseeki64 +#endif + #if 0 #if !defined(__64BIT__) && (PLATFORM_POSIX_VERSION >= 200112L) /* No point defining Large file for 64 bit */ # define fseek fseeko #endif #endif + /***************************** * Constants *****************************/ |