mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 19:24:48 +02:00
Prevent potential warnings about macro redefinitions.
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user