summaryrefslogtreecommitdiffstats
path: root/programs
diff options
context:
space:
mode:
authorPrzemyslaw Skibinski <inikep@gmail.com>2016-12-21 09:22:40 (GMT)
committerPrzemyslaw Skibinski <inikep@gmail.com>2016-12-21 09:22:40 (GMT)
commit64cbc4e1dc17492d89915a9d774dc15ee438ccfe (patch)
treede55eaf5d43ac6d35a02fe26a8a96642cb722a55 /programs
parent9546ba62d01a9618aab91eafe77929120653d275 (diff)
downloadlz4-64cbc4e1dc17492d89915a9d774dc15ee438ccfe.zip
lz4-64cbc4e1dc17492d89915a9d774dc15ee438ccfe.tar.gz
lz4-64cbc4e1dc17492d89915a9d774dc15ee438ccfe.tar.bz2
improved MinGW support
Diffstat (limited to 'programs')
-rw-r--r--programs/lz4cli.c3
-rw-r--r--programs/lz4io.c6
-rw-r--r--programs/platform.h3
3 files changed, 6 insertions, 6 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c
index 366aed5..e03aa98 100644
--- a/programs/lz4cli.c
+++ b/programs/lz4cli.c
@@ -507,6 +507,9 @@ int main(int argc, const char** argv)
#ifdef PLATFORM_POSIX_VERSION
DISPLAYLEVEL(4, "PLATFORM_POSIX_VERSION defined: %ldL\n", (long) PLATFORM_POSIX_VERSION);
#endif
+#ifdef _FILE_OFFSET_BITS
+ DISPLAYLEVEL(4, "_FILE_OFFSET_BITS defined: %ldL\n", (long) _FILE_OFFSET_BITS);
+#endif
if ((mode == om_compress) || (mode == om_bench)) DISPLAYLEVEL(4, "Blocks size : %i KB\n", (U32)(blockSize>>10));
if (multiple_inputs) {
diff --git a/programs/lz4io.c b/programs/lz4io.c
index 15c69f0..df3ed41 100644
--- a/programs/lz4io.c
+++ b/programs/lz4io.c
@@ -30,12 +30,6 @@
- The license of this source file is GPLv2.
*/
-/**************************************
-* Compiler Options
-**************************************/
-#if defined(__MINGW32__) && !defined(_POSIX_SOURCE)
-# define _POSIX_SOURCE 1 /* disable %llu warnings with MinGW on Windows */
-#endif
/*****************************
* Includes
diff --git a/programs/platform.h b/programs/platform.h
index c4b97c8..02ebd4c 100644
--- a/programs/platform.h
+++ b/programs/platform.h
@@ -42,6 +42,9 @@ extern "C" {
# define fseek _fseeki64
# endif
#endif
+#if defined(__MINGW32__) && !defined(_POSIX_SOURCE)
+# define _POSIX_C_SOURCE 1 /* enable __VA_ARGS__ and disable %llu warnings with MinGW on Windows */
+#endif
/* **************************************