diff options
author | Kouhei Sutou <kou@clear-code.com> | 2016-01-10 08:41:43 (GMT) |
---|---|---|
committer | Kouhei Sutou <kou@clear-code.com> | 2016-01-10 08:41:43 (GMT) |
commit | 14b40fb6d713211132524f6245d128bbb75a6f15 (patch) | |
tree | 4671b44f45becaf7f0f27768f28301d52743d12f /programs | |
parent | d86dc916771c126afb797637dda9f6421c0cb998 (diff) | |
download | lz4-14b40fb6d713211132524f6245d128bbb75a6f15.zip lz4-14b40fb6d713211132524f6245d128bbb75a6f15.tar.gz lz4-14b40fb6d713211132524f6245d128bbb75a6f15.tar.bz2 |
Fix build error on MinGW
Header file name is case insensitive on Windows but it is case sensitive
on Linux. "Windows.h" can't be found on Linux.
Diffstat (limited to 'programs')
-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 14bbf0e..e4823dc 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -66,7 +66,7 @@ # 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 <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 */ # define fseek _fseeki64 |