diff --git a/format.cc b/format.cc index 16734aef..bb486da6 100644 --- a/format.cc +++ b/format.cc @@ -26,6 +26,7 @@ */ // Disable useless MSVC warnings. +#undef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #include "format.h" @@ -42,6 +43,7 @@ using std::size_t; using fmt::Formatter; #if _MSC_VER +# undef snprintf # define snprintf _snprintf #endif diff --git a/format_test.cc b/format_test.cc index 2dbf00cb..1cdeb619 100644 --- a/format_test.cc +++ b/format_test.cc @@ -26,6 +26,7 @@ */ // Disable useless MSVC warnings. +#undef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #include