From fc823290a76a260b7ba6f47ab5f52064a0ce19ff Mon Sep 17 00:00:00 2001 From: Eugene Kliuchnikov Date: Thu, 2 Jul 2020 19:45:57 +0200 Subject: [PATCH] Mute strerror/strcpy warnings is MSVC build. (#815) --- c/tools/brotli.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/c/tools/brotli.c b/c/tools/brotli.c index 3db34f2..7c678d3 100644 --- a/c/tools/brotli.c +++ b/c/tools/brotli.c @@ -6,6 +6,11 @@ /* Command line interface for Brotli library. */ +/* Mute strerror/strcpy warnings. */ +#if !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + #include #include #include