Add definition to avoid redefinition of min() and max() macros when including windows.h on Windows

This commit is contained in:
Daniel Chappuis 2013-03-09 08:39:09 +01:00
parent 8107bbab8e
commit 999bef7c8d

View File

@ -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>