summaryrefslogtreecommitdiffstats
path: root/programs/lz4io.c
diff options
context:
space:
mode:
authorinikep <inikep@gmail.com>2016-09-02 19:50:57 (GMT)
committerinikep <inikep@gmail.com>2016-09-02 19:50:57 (GMT)
commitc1864f69e87d68fe79420c9303ecf97eb66bc7c7 (patch)
tree42718545667f6dfc584afaa1912693b6cc46b474 /programs/lz4io.c
parent7f08131f9986f0c19f2683d023d1cd9fdab41e32 (diff)
downloadlz4-c1864f69e87d68fe79420c9303ecf97eb66bc7c7.zip
lz4-c1864f69e87d68fe79420c9303ecf97eb66bc7c7.tar.gz
lz4-c1864f69e87d68fe79420c9303ecf97eb66bc7c7.tar.bz2
fix mingw64 compilation warnings
Diffstat (limited to 'programs/lz4io.c')
-rw-r--r--programs/lz4io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c
index e4823dc..bc1213a 100644
--- a/programs/lz4io.c
+++ b/programs/lz4io.c
@@ -42,6 +42,9 @@
#define _LARGE_FILES /* Large file support on 32-bits AIX */
#define _FILE_OFFSET_BITS 64 /* Large file support on 32-bits unix */
+#if defined(__MINGW32__) && !defined(_POSIX_SOURCE)
+# define _POSIX_SOURCE 1 /* disable %llu warnings with MinGW on Windows */
+#endif
/*****************************
* Includes