]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
attempt to silence Visual Studio warning about fopen()
authorYann Collet <cyan@fb.com>
Tue, 17 Dec 2024 05:48:10 +0000 (21:48 -0800)
committerYann Collet <cyan@fb.com>
Fri, 20 Dec 2024 18:37:00 +0000 (10:37 -0800)
tests/fullbench.c

index 0776d4221fd46ca13d7f0c96c58507489f26b5a0..e89a2b3268f9bedeccb256d13762cc1353b03c6f 100644 (file)
@@ -12,8 +12,9 @@
 /*_************************************
 *  Includes
 **************************************/
-#include <limits.h>
+#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 <limits.h>
 #include "util.h"        /* Compiler options, UTIL_GetFileSize */
 #include <stdlib.h>      /* malloc */
 #include <stdio.h>       /* fprintf, fopen, ftello64 */