summaryrefslogtreecommitdiffstats
path: root/programs/lz4io.c
diff options
context:
space:
mode:
authorinikep <inikep@gmail.com>2016-09-02 23:35:00 (GMT)
committerinikep <inikep@gmail.com>2016-09-02 23:35:00 (GMT)
commit829ae7587158a614192b6f300f46caa07f5a4e08 (patch)
tree587cb0aa6d1488110db0c301282d9439e5cf0f2d /programs/lz4io.c
parent547e1943c06148f161489eaccf1d500e34a143d2 (diff)
downloadlz4-829ae7587158a614192b6f300f46caa07f5a4e08.zip
lz4-829ae7587158a614192b6f300f46caa07f5a4e08.tar.gz
lz4-829ae7587158a614192b6f300f46caa07f5a4e08.tar.bz2
remove EnablePREfast=true for Win32
Diffstat (limited to 'programs/lz4io.c')
-rw-r--r--programs/lz4io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c
index bc1213a..1e9a2f5 100644
--- a/programs/lz4io.c
+++ b/programs/lz4io.c
@@ -70,6 +70,7 @@
# 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_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 */
# define fseek _fseeki64