From 589590368ac30414b995f4329dedf4603273d18d Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 16 Dec 2024 21:48:10 -0800 Subject: [PATCH] attempt to silence Visual Studio warning about fopen() --- tests/fullbench.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/fullbench.c b/tests/fullbench.c index 0776d4221f..e89a2b3268 100644 --- a/tests/fullbench.c +++ b/tests/fullbench.c @@ -12,8 +12,9 @@ /*_************************************ * Includes **************************************/ -#include +#define _CRT_SECURE_NO_WARNINGS /* disable Visual warning that it doesn't like fopen() */ #define ZSTD_DISABLE_DEPRECATE_WARNINGS /* No deprecation warnings, we still bench some deprecated functions */ +#include #include "util.h" /* Compiler options, UTIL_GetFileSize */ #include /* malloc */ #include /* fprintf, fopen, ftello64 */