summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPrzemyslaw Skibinski <inikep@gmail.com>2016-12-21 15:10:09 (GMT)
committerPrzemyslaw Skibinski <inikep@gmail.com>2016-12-21 15:10:09 (GMT)
commit973bc79740f571c2b6700cab16a319df9aed2a05 (patch)
treee3ece1e99990ad10a491e7077968072346cf0f3d /tests
parent4f61505cc40cb8b2c6c371600a427fd685c656a2 (diff)
downloadlz4-973bc79740f571c2b6700cab16a319df9aed2a05.zip
lz4-973bc79740f571c2b6700cab16a319df9aed2a05.tar.gz
lz4-973bc79740f571c2b6700cab16a319df9aed2a05.tar.bz2
util.h and platform.h based on zstd
Diffstat (limited to 'tests')
-rw-r--r--tests/frametest.c2
-rw-r--r--tests/fullbench.c1
-rw-r--r--tests/fuzzer.c3
3 files changed, 4 insertions, 2 deletions
diff --git a/tests/frametest.c b/tests/frametest.c
index 8b7caba..869be76 100644
--- a/tests/frametest.c
+++ b/tests/frametest.c
@@ -27,6 +27,7 @@
* Compiler specific
**************************************/
#ifdef _MSC_VER /* Visual Studio */
+# pragma warning(disable : 4127) /* disable: C4127: conditional expression is constant */
# pragma warning(disable : 4146) /* disable: C4146: minus unsigned expression */
#endif
@@ -34,7 +35,6 @@
/*-************************************
* Includes
**************************************/
-#include "platform.h" /* Compiler options */
#include "util.h" /* U32 */
#include <stdlib.h> /* malloc, free */
#include <stdio.h> /* fprintf */
diff --git a/tests/fullbench.c b/tests/fullbench.c
index 8d55d2d..f489392 100644
--- a/tests/fullbench.c
+++ b/tests/fullbench.c
@@ -33,6 +33,7 @@
/**************************************
* Includes
**************************************/
+#include "platform.h" /* _CRT_SECURE_NO_WARNINGS, Large Files support */
#include "util.h" /* U32, UTIL_getFileSize */
#include <stdlib.h> /* malloc, free */
#include <stdio.h> /* fprintf, fopen, ftello */
diff --git a/tests/fuzzer.c b/tests/fuzzer.c
index 10e9139..ff02e0c 100644
--- a/tests/fuzzer.c
+++ b/tests/fuzzer.c
@@ -27,6 +27,7 @@
* Compiler options
**************************************/
#ifdef _MSC_VER /* Visual Studio */
+# pragma warning(disable : 4127) /* disable: C4127: conditional expression is constant */
# pragma warning(disable : 4146) /* disable: C4146: minus unsigned expression */
# pragma warning(disable : 4310) /* disable: C4310: constant char value > 127 */
#endif
@@ -35,7 +36,7 @@
/*-************************************
* Dependencies
**************************************/
-#include "platform.h" /* Compiler options */
+#include "platform.h" /* _CRT_SECURE_NO_WARNINGS */
#include "util.h" /* U32 */
#include <stdlib.h>
#include <stdio.h> /* fgets, sscanf */