forked from fmtlib/fmt
Don't include the world with WIN32_LEAN_AND_MEAN (#503)
(cherry picked from commit 4423490d0b
)
This commit is contained in:
committed by
Jonathan Müller
parent
9270e66700
commit
1934d9e5d9
@@ -41,6 +41,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if FMT_USE_WINDOWS_H
|
#if FMT_USE_WINDOWS_H
|
||||||
|
# ifndef WIN32_LEAN_AND_MEAN
|
||||||
|
# define WIN32_LEAN_AND_MEAN
|
||||||
|
# endif
|
||||||
# if defined(NOMINMAX) || defined(FMT_WIN_MINMAX)
|
# if defined(NOMINMAX) || defined(FMT_WIN_MINMAX)
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
# else
|
# else
|
||||||
|
@@ -21,6 +21,9 @@
|
|||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#else
|
#else
|
||||||
|
# ifndef WIN32_LEAN_AND_MEAN
|
||||||
|
# define WIN32_LEAN_AND_MEAN
|
||||||
|
# endif
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
# include <io.h>
|
# include <io.h>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user