From ab05af06f2b6e35a843687d2b56011ca6189e277 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 27 Feb 2013 13:44:00 -0800 Subject: [PATCH] Workaround MSCRT brain damage. --- format.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/format.h b/format.h index 054a8e59..90d57457 100644 --- a/format.h +++ b/format.h @@ -40,6 +40,11 @@ #include #include +#ifndef _CRT_SECURE_NO_WARNINGS +# define _CRT_SECURE_NO_WARNINGS +# define FMT_RESTORE_WARNINGS +#endif + namespace fmt { namespace internal { @@ -1547,4 +1552,8 @@ void BasicFormatter::DoFormat() { } } +#ifndef FMT_RESTORE_WARNINGS +# undef _CRT_SECURE_NO_WARNINGS +#endif + #endif // FORMAT_H_