Don't include the world with WIN32_LEAN_AND_MEAN (#503)

This commit is contained in:
Quentin Buathier 2017-05-04 04:22:01 +09:00 committed by Jonathan Müller
parent d49f206183
commit 4423490d0b
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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>