FMT_BIG_WIN to get all windows.h content

See https://github.com/fmtlib/fmt/pull/1855 for details
This commit is contained in:
Giovanni Cerretani 2020-09-03 16:42:46 +02:00 committed by GitHub
parent b89342f78a
commit 5332c06fd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,18 +23,14 @@
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
# if !defined(NOMINMAX) && !defined(WIN32_LEAN_AND_MEAN) # ifdef FMT_BIG_WIN
# include <windows.h>
# else
# define NOMINMAX # define NOMINMAX
# define WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN
# include <windows.h> # include <windows.h>
# undef WIN32_LEAN_AND_MEAN # undef WIN32_LEAN_AND_MEAN
# undef NOMINMAX # undef NOMINMAX
# elif defined(NOMINMAX) && !defined(WIN32_LEAN_AND_MEAN)
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# undef WIN32_LEAN_AND_MEAN
# else
# include <windows.h>
# endif # endif
# include <io.h> # include <io.h>
#endif #endif