mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-12 15:39:09 +00:00
Prevent potential warnings about macro redefinitions.
This commit is contained in:
parent
ade5381f9a
commit
f8c9106d67
@ -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
|
||||
|
||||
|
@ -26,6 +26,7 @@
|
||||
*/
|
||||
|
||||
// Disable useless MSVC warnings.
|
||||
#undef _CRT_SECURE_NO_WARNINGS
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
|
||||
#include <cctype>
|
||||
|
Loading…
Reference in New Issue
Block a user