Prevent potential warnings about macro redefinitions.

This commit is contained in:
Victor Zverovich 2012-12-17 15:41:00 -08:00
parent ade5381f9a
commit f8c9106d67
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -26,6 +26,7 @@
*/
// Disable useless MSVC warnings.
#undef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#include <cctype>