diff --git a/format.cc b/format.cc index fe4f1b18733e..fb69acf0980a 100644 --- a/format.cc +++ b/format.cc @@ -25,7 +25,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef FMT_HEADER_ONLY #include "format.h" +#endif #include @@ -39,6 +41,8 @@ # ifdef __MINGW32__ # include # endif +# define WIN32_LEAN_AND_MEAN +# define NOMINMAX # include #endif