Moved Windows defines before objbase.h includes, since it can include windows.h.
Wrapped defines in order to avoid redefinition warnings/errors under strict compilation settings.
This commit is contained in:
parent
4179dacce4
commit
6bd1e3bb78
@ -18,10 +18,13 @@
|
|||||||
#include <gsl/span>
|
#include <gsl/span>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <objbase.h>
|
#ifndef WIN32_LEAN_AND_MEAN
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#endif
|
||||||
|
#ifndef NOMINMAX
|
||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
|
#endif
|
||||||
|
#include <objbase.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
#include <iphlpapi.h>
|
#include <iphlpapi.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user