mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Undefine Windows min/max macros (#152)
because they break std::min/max. This only affects non-default header-only configuration and can be disabled by defining FMT_WIN_MINMAX.
This commit is contained in:
parent
f44666aac6
commit
67ce394256
@ -39,7 +39,13 @@
|
|||||||
# ifdef __MINGW32__
|
# ifdef __MINGW32__
|
||||||
# include <cstring>
|
# include <cstring>
|
||||||
# endif
|
# endif
|
||||||
# include <windows.h>
|
# if defined(NOMINMAX) || defined(FMT_WIN_MINMAX)
|
||||||
|
# include <windows.h>
|
||||||
|
# else
|
||||||
|
# define NOMINMAX
|
||||||
|
# include <windows.h>
|
||||||
|
# undef NOMINMAX
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using fmt::internal::Arg;
|
using fmt::internal::Arg;
|
||||||
|
Loading…
Reference in New Issue
Block a user