mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-13 00:40:51 +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.
|
// Disable useless MSVC warnings.
|
||||||
|
#undef _CRT_SECURE_NO_WARNINGS
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
|
||||||
#include "format.h"
|
#include "format.h"
|
||||||
@ -42,6 +43,7 @@ using std::size_t;
|
|||||||
using fmt::Formatter;
|
using fmt::Formatter;
|
||||||
|
|
||||||
#if _MSC_VER
|
#if _MSC_VER
|
||||||
|
# undef snprintf
|
||||||
# define snprintf _snprintf
|
# define snprintf _snprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Disable useless MSVC warnings.
|
// Disable useless MSVC warnings.
|
||||||
|
#undef _CRT_SECURE_NO_WARNINGS
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
|
Loading…
Reference in New Issue
Block a user