From c56d345985c5f717e8f63dd3ec3da8765fd07748 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 6 May 2017 09:13:32 -0700 Subject: [PATCH] Don't define WIN32_LEAN_AND_MEAN in header-only mode --- fmt/format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmt/format.cc b/fmt/format.cc index d63c5543..ef429d12 100644 --- a/fmt/format.cc +++ b/fmt/format.cc @@ -41,7 +41,7 @@ #endif #if FMT_USE_WINDOWS_H -# ifndef WIN32_LEAN_AND_MEAN +# if !defined(FMT_HEADER_ONLY) && !defined(WIN32_LEAN_AND_MEAN) # define WIN32_LEAN_AND_MEAN # endif # if defined(NOMINMAX) || defined(FMT_WIN_MINMAX)