diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2015-06-29 09:48:37 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2015-06-29 09:48:37 (GMT) |
commit | d86dc916771c126afb797637dda9f6421c0cb998 (patch) | |
tree | e6290359efd5d2e424b05f25a19b6ed3cee6e872 /programs/lz4io.c | |
parent | db59c7d3321665a1d25f883ac7d80a2839fe22b9 (diff) | |
parent | dfabec2d1817e08fda70c19ed9248819b6a1fb22 (diff) | |
download | lz4-d86dc916771c126afb797637dda9f6421c0cb998.zip lz4-d86dc916771c126afb797637dda9f6421c0cb998.tar.gz lz4-d86dc916771c126afb797637dda9f6421c0cb998.tar.bz2 |
Merge pull request #131 from Cyan4973/devr131
Dev
Diffstat (limited to 'programs/lz4io.c')
-rw-r--r-- | programs/lz4io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c index be2dc5d..14bbf0e 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -65,7 +65,7 @@ # include <fcntl.h> /* _O_BINARY */ # include <io.h> /* _setmode, _fileno, _get_osfhandle */ # if !defined(__DJGPP__) -# define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY) +# define SET_BINARY_MODE(file) { int unused=_setmode(_fileno(file), _O_BINARY); (void)unused; } # include <Windows.h> /* DeviceIoControl, HANDLE, FSCTL_SET_SPARSE */ # define SET_SPARSE_FILE_MODE(file) { DWORD dw; DeviceIoControl((HANDLE) _get_osfhandle(_fileno(file)), FSCTL_SET_SPARSE, 0, 0, 0, 0, &dw, 0); } # if defined(_MSC_VER) && (_MSC_VER >= 1400) /* Avoid MSVC fseek()'s 2GiB barrier */ |