diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2016-12-22 10:58:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-22 10:58:29 (GMT) |
commit | b41f9bb132e8207999e89d01925e202da98b7649 (patch) | |
tree | 4632c6d377ee39fe9bc5011191824360fe7b3990 /programs/bench.c | |
parent | 7eb16d97d238e2b98f1e6453ed6ad64058cb99c1 (diff) | |
parent | fea95c156761ee10d32a4f12105ebd90c67d4f47 (diff) | |
download | lz4-b41f9bb132e8207999e89d01925e202da98b7649.zip lz4-b41f9bb132e8207999e89d01925e202da98b7649.tar.gz lz4-b41f9bb132e8207999e89d01925e202da98b7649.tar.bz2 |
Merge pull request #292 from inikep/dev
improved POSIX
Diffstat (limited to 'programs/bench.c')
-rw-r--r-- | programs/bench.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/programs/bench.c b/programs/bench.c index 406adcf..8311503 100644 --- a/programs/bench.c +++ b/programs/bench.c @@ -24,13 +24,22 @@ */ +/*-************************************ +* Compiler options +**************************************/ +#ifdef _MSC_VER /* Visual Studio */ +# pragma warning(disable : 4127) /* disable: C4127: conditional expression is constant */ +#endif + + /* ************************************* * Includes ***************************************/ -#include "util.h" /* Compiler options, UTIL_GetFileSize, UTIL_sleep */ +#include "platform.h" /* Compiler options */ +#include "util.h" /* UTIL_GetFileSize, UTIL_sleep */ #include <stdlib.h> /* malloc, free */ #include <string.h> /* memset */ -#include <stdio.h> /* fprintf, fopen, ftello64 */ +#include <stdio.h> /* fprintf, fopen, ftello */ #include <time.h> /* clock_t, clock, CLOCKS_PER_SEC */ #include "datagen.h" /* RDG_genBuffer */ |