Prevent potential warnings about macro redefinitions.
This commit is contained in:
1 parent
ade5381f9a
commit
f8c9106d67
2 files changed
+3
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user