From 1934d9e5d96041b5ef308eaa6ca881fd1b7e07db 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) (cherry picked from commit 4423490d0b7b84be3457f74032e9fe1bf96d2914) --- fmt/format.cc | 3 +++ fmt/posix.cc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/fmt/format.cc b/fmt/format.cc index 8fb3266a40b7..f4fc3df10c06 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 d86578fb5f6b..356668c135ab 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