diff options
author | Przemyslaw Skibinski <inikep@gmail.com> | 2016-12-20 18:31:05 (GMT) |
---|---|---|
committer | Przemyslaw Skibinski <inikep@gmail.com> | 2016-12-20 18:31:05 (GMT) |
commit | 2efedaf7dc8f20d2e5761ee600712bdb0371bc5c (patch) | |
tree | 4d1d3ba951f814bb00094f1cc1f2e35abf7282bb /programs/platform.h | |
parent | 6adf05d1ed83053b8bb1f762494d2c10fdd8ac1d (diff) | |
download | lz4-2efedaf7dc8f20d2e5761ee600712bdb0371bc5c.zip lz4-2efedaf7dc8f20d2e5761ee600712bdb0371bc5c.tar.gz lz4-2efedaf7dc8f20d2e5761ee600712bdb0371bc5c.tar.bz2 |
fixed gcc warnings
Diffstat (limited to 'programs/platform.h')
-rw-r--r-- | programs/platform.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/programs/platform.h b/programs/platform.h index df70037..244b2d8 100644 --- a/programs/platform.h +++ b/programs/platform.h @@ -116,9 +116,9 @@ extern "C" { # include <fcntl.h> /* _O_BINARY */ # include <io.h> /* _setmode, _fileno, _get_osfhandle */ # if !defined(__DJGPP__) -# define SET_BINARY_MODE(file) { int unused=_setmode(_fileno(file), _O_BINARY); (void)unused; } # include <windows.h> /* DeviceIoControl, HANDLE, FSCTL_SET_SPARSE */ # include <winioctl.h> /* FSCTL_SET_SPARSE */ +# define SET_BINARY_MODE(file) { int unused=_setmode(_fileno(file), _O_BINARY); (void)unused; } # define SET_SPARSE_FILE_MODE(file) { DWORD dw; DeviceIoControl((HANDLE) _get_osfhandle(_fileno(file)), FSCTL_SET_SPARSE, 0, 0, 0, 0, &dw, 0); } # else # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) |