diff options
author | Przemyslaw Skibinski <inikep@gmail.com> | 2016-12-21 15:10:09 (GMT) |
---|---|---|
committer | Przemyslaw Skibinski <inikep@gmail.com> | 2016-12-21 15:10:09 (GMT) |
commit | 973bc79740f571c2b6700cab16a319df9aed2a05 (patch) | |
tree | e3ece1e99990ad10a491e7077968072346cf0f3d /programs/lz4io.c | |
parent | 4f61505cc40cb8b2c6c371600a427fd685c656a2 (diff) | |
download | lz4-973bc79740f571c2b6700cab16a319df9aed2a05.zip lz4-973bc79740f571c2b6700cab16a319df9aed2a05.tar.gz lz4-973bc79740f571c2b6700cab16a319df9aed2a05.tar.bz2 |
util.h and platform.h based on zstd
Diffstat (limited to 'programs/lz4io.c')
-rw-r--r-- | programs/lz4io.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c index ca3cea5..36498b2 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -31,10 +31,14 @@ */ +#if defined(__MINGW32__) && !defined(_POSIX_SOURCE) +# define _POSIX_SOURCE 1 /* disable %llu warnings with MinGW on Windows */ +#endif + /***************************** * Includes *****************************/ -#include "platform.h" /* Compiler options, Large File Support, SET_BINARY_MODE, SET_SPARSE_FILE_MODE */ +#include "platform.h" /* Large File Support, SET_BINARY_MODE, SET_SPARSE_FILE_MODE */ #include "util.h" /* UTIL_getFileStat, UTIL_setFileStat */ #include <stdio.h> /* fprintf, fopen, fread, stdin, stdout, fflush, getchar */ #include <stdlib.h> /* malloc, free */ |