Workaround MSCRT brain damage.

This commit is contained in:
Victor Zverovich 2013-02-27 13:44:00 -08:00
parent 1e58ebf1b7
commit ab05af06f2

View File

@ -40,6 +40,11 @@
#include <string>
#include <sstream>
#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<Char>::DoFormat() {
}
}
#ifndef FMT_RESTORE_WARNINGS
# undef _CRT_SECURE_NO_WARNINGS
#endif
#endif // FORMAT_H_