diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2015-03-23 01:20:42 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2015-03-23 01:20:42 (GMT) |
commit | 7f436a1215f11b0fb872c34f088b8b5888d0630d (patch) | |
tree | 51466bdcec0166a2e25d4dc276abac6f284d7f72 /programs/bench.c | |
parent | a28b14731d35f717c5d48f07c9a9312c60961493 (diff) | |
download | lz4-7f436a1215f11b0fb872c34f088b8b5888d0630d.zip lz4-7f436a1215f11b0fb872c34f088b8b5888d0630d.tar.gz lz4-7f436a1215f11b0fb872c34f088b8b5888d0630d.tar.bz2 |
lz4 cli supports frame content size
Diffstat (limited to 'programs/bench.c')
-rw-r--r-- | programs/bench.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/programs/bench.c b/programs/bench.c index f0a27ef..e1b5357 100644 --- a/programs/bench.c +++ b/programs/bench.c @@ -26,9 +26,11 @@ /************************************** * Compiler Options ***************************************/ -/* Disable some Visual warning messages */ -#define _CRT_SECURE_NO_WARNINGS -#define _CRT_SECURE_NO_DEPRECATE /* VS2005 */ +#if defined(_MSC_VER) || defined(_WIN32) +# define _CRT_SECURE_NO_WARNINGS +# define _CRT_SECURE_NO_DEPRECATE /* VS2005 */ +# define BMK_LEGACY_TIMER 1 /* S_ISREG & gettimeofday() are not supported by MSVC */ +#endif /* Unix Large Files support (>4GB) */ #define _FILE_OFFSET_BITS 64 @@ -38,11 +40,6 @@ # define _LARGEFILE64_SOURCE #endif -/* S_ISREG & gettimeofday() are not supported by MSVC */ -#if defined(_MSC_VER) || defined(_WIN32) -# define BMK_LEGACY_TIMER 1 -#endif - /************************************** * Includes |