Merge pull request #1 from nyq/nyq-fix-min-max-conflicts
Prevent min/max conflicts between windows.h and std namespace
This commit is contained in:
commit
5891bf568d
@ -43,7 +43,10 @@ extern "C" {
|
|||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
#define MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS 0
|
#define MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS 0
|
||||||
|
#endif
|
||||||
|
#ifndef NOMINMAX
|
||||||
|
#define NOMINMAX
|
||||||
#endif
|
#endif
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user