diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index f632714d..788eb8da 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -22,8 +22,14 @@ #endif #ifdef _WIN32 +# if defined(NOMINMAX) +# include +# else +# define NOMINMAX +# include +# undef NOMINMAX +# endif # include -# include #endif #ifdef _MSC_VER