From cf8895cd1476c26e7a8a787ddd2abfb8ec009125 Mon Sep 17 00:00:00 2001 From: denchat <19730041+denchat@users.noreply.github.com> Date: Thu, 8 Apr 2021 13:04:26 +0700 Subject: [PATCH] Suppress redef warning of _CRT_SECURE_NO_WARNINGS Suppress redef warning of _CRT_SECURE_NO_WARNINGS if any. --- test/chrono-test.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/chrono-test.cc b/test/chrono-test.cc index b27710ca..70ff0a98 100644 --- a/test/chrono-test.cc +++ b/test/chrono-test.cc @@ -6,7 +6,9 @@ // For the license information refer to format.h. #ifdef WIN32 -# define _CRT_SECURE_NO_WARNINGS +# ifndef _CRT_SECURE_NO_WARNINGS +# define _CRT_SECURE_NO_WARNINGS +# endif #endif #include "fmt/chrono.h"