From a5b1111d7faf9def6c640b92dd1c520bb9c572be Mon Sep 17 00:00:00 2001 From: denchat <19730041+denchat@users.noreply.github.com> Date: Tue, 7 May 2019 22:23:44 +0700 Subject: [PATCH] retaining _CRT_SECURE_NO_WARNINGS always defined should be no harms. --- test/custom-formatter-test.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/custom-formatter-test.cc b/test/custom-formatter-test.cc index 968cce2b..2fb64a83 100644 --- a/test/custom-formatter-test.cc +++ b/test/custom-formatter-test.cc @@ -5,10 +5,8 @@ // // For the license information refer to format.h. -#ifdef _MSC_VER -# ifndef _CRT_SECURE_NO_WARNINGS -# define _CRT_SECURE_NO_WARNINGS -# endif +#ifndef _CRT_SECURE_NO_WARNINGS +# define _CRT_SECURE_NO_WARNINGS #endif #include "fmt/format.h"