mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Workaround MSCRT brain damage.
This commit is contained in:
parent
1e58ebf1b7
commit
ab05af06f2
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_
|
||||
|
Loading…
Reference in New Issue
Block a user