Added #define WIN32_LEAN_AND_MEAN before including windows.h (#1729)
Co-authored-by: gabime <gmelman1@mgail.com>
This commit is contained in:
parent
397ad1bec3
commit
5aa5c98738
@ -23,12 +23,14 @@
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
# if defined(NOMINMAX)
|
||||
# include <windows.h>
|
||||
# else
|
||||
# if !defined(NOMINMAX) && !defined(WIN32_LEAN_AND_MEAN)
|
||||
# define NOMINMAX
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# include <windows.h>
|
||||
# undef WIN32_LEAN_AND_MEAN
|
||||
# undef NOMINMAX
|
||||
# else
|
||||
# include <windows.h>
|
||||
# endif
|
||||
# include <io.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user