Replace fseek with _fseeki64 to avoid MSVC's 2GiB barrier
authorTakayuki MATSUOKA <takayuki.matsuoka@gmail.com>
Sat, 14 Feb 2015 03:48:11 +0000 (12:48 +0900)
committerTakayuki MATSUOKA <takayuki.matsuoka@gmail.com>
Sat, 14 Feb 2015 03:48:11 +0000 (12:48 +0900)
commit41b6ed3c5bc7f0c85f1bfe3abc940d9b74581e7d
tree1c51700b8513b009bbba7682739c25e40717dbc2
parent9fd92def420879e7d5c7c9fb9a9abd2fbd54bb7a
Replace fseek with _fseeki64 to avoid MSVC's 2GiB barrier

Since MSVC fseek()'s SEEK_CUR mode has 2GiB barrier, our fseek() calling in program/lz4io.c/selectDecoder() will fail for large (>2GiB) .lz4 file.
This commit just replace fseek with _fseeki64 by macro. Second argument is automatically casted to __int64 (signed 64bit integer). Other things are completely same.
programs/lz4io.c