summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKouhei Sutou <kou@clear-code.com>2016-09-22 15:34:42 (GMT)
committerKouhei Sutou <kou@clear-code.com>2016-09-22 15:34:42 (GMT)
commit46a7b94e8cf4c56eafcddeca09c63df368bfa4cb (patch)
tree8abd5fd32e2da9faf0ce99980f8cefd2b81a4e14
parent3b9439ccd043fe5704af6528f3b3155cf6f8f0c4 (diff)
downloadlz4-46a7b94e8cf4c56eafcddeca09c63df368bfa4cb.zip
lz4-46a7b94e8cf4c56eafcddeca09c63df368bfa4cb.tar.gz
lz4-46a7b94e8cf4c56eafcddeca09c63df368bfa4cb.tar.bz2
Use lower case for header file name
"WinIoCtl.h" works on Windows because Windows uses case insensitive file system. But it doesn't work on GNU/Linux (for cross compiling with MinGW) because GNU/Linux uses case sensitive file system.
-rw-r--r--programs/lz4io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c
index 1e9a2f5..f8eadf0 100644
--- a/programs/lz4io.c
+++ b/programs/lz4io.c
@@ -70,7 +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 */
+# 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