Add definition to avoid redefinition of min() and max() macros when including windows.h on Windows
This commit is contained in:
parent
8107bbab8e
commit
999bef7c8d
|
@ -34,6 +34,7 @@
|
|||
#include "../configuration.h"
|
||||
|
||||
#if defined(WINDOWS_OS) // For Windows platform
|
||||
#define NOMINMAX // This is used to avoid definition of max() and min() macros
|
||||
#include <windows.h>
|
||||
#else // For Mac OS or Linux platform
|
||||
#include <sys/time.h>
|
||||
|
|
Loading…
Reference in New Issue
Block a user