forked from fmtlib/fmt
Workaround MSCRT brain damage.
This commit is contained in:
9
format.h
9
format.h
@@ -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_
|
||||
|
Reference in New Issue
Block a user