mirror of
https://github.com/fmtlib/fmt.git
synced 2026-10-29 02:17:28 +08:00
Guard WIN32_LEAN_AND_MEAN in the C++20 module
Avoid a macro redefinition warning when WIN32_LEAN_AND_MEAN is already provided through compiler flags, for example with -DWIN32_LEAN_AND_MEAN. This follows the approach previously adopted in #1729.
This commit is contained in:
parent
18164eaf8b
commit
1b46de5634
@ -101,7 +101,9 @@ module;
|
||||
# include <ext/stdio_filebuf.h>
|
||||
# include <ext/stdio_sync_filebuf.h>
|
||||
# endif
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# ifndef WIN32_LEAN_AND_MEAN
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# endif
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user