Commit 4423490d authored by Quentin Buathier's avatar Quentin Buathier Committed by Jonathan Müller

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

parent d49f2061
...@@ -41,6 +41,9 @@ ...@@ -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 @@ ...@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment