mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-23 20:14:57 +08:00
Don't include the world with WIN32_LEAN_AND_MEAN (#503)
(cherry picked from commit 4423490d0b7b84be3457f74032e9fe1bf96d2914)
This commit is contained in:
parent
9270e66700
commit
1934d9e5d9
@ -41,6 +41,9 @@
|
||||
#endif
|
||||
|
||||
#if FMT_USE_WINDOWS_H
|
||||
# ifndef WIN32_LEAN_AND_MEAN
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# endif
|
||||
# if defined(NOMINMAX) || defined(FMT_WIN_MINMAX)
|
||||
# include <windows.h>
|
||||
# else
|
||||
|
||||
@ -21,6 +21,9 @@
|
||||
#ifndef _WIN32
|
||||
# include <unistd.h>
|
||||
#else
|
||||
# ifndef WIN32_LEAN_AND_MEAN
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# endif
|
||||
# include <windows.h>
|
||||
# include <io.h>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user