Added #define WIN32_LEAN_AND_MEAN before including windows.h (#1729)

Co-authored-by: gabime <gmelman1@mgail.com>
This commit is contained in:
Gabi Melman 2020-06-17 17:44:03 +03:00 committed by GitHub
parent 397ad1bec3
commit 5aa5c98738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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