From 4423490d0b7b84be3457f74032e9fe1bf96d2914 Mon Sep 17 00:00:00 2001 From: Quentin Buathier Date: Thu, 4 May 2017 04:22:01 +0900 Subject: [PATCH] Don't include the world with WIN32_LEAN_AND_MEAN (#503) --- fmt/format.cc | 3 +++ fmt/posix.cc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/fmt/format.cc b/fmt/format.cc index 494a4a71..d63c5543 100644 --- a/fmt/format.cc +++ b/fmt/format.cc @@ -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 # else diff --git a/fmt/posix.cc b/fmt/posix.cc index d86578fb..356668c1 100644 --- a/fmt/posix.cc +++ b/fmt/posix.cc @@ -21,6 +21,9 @@ #ifndef _WIN32 # include #else +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif # include # include