From 4c93758ab8d467902b1eb48683fdb85ef70426ee Mon Sep 17 00:00:00 2001 From: Pavel Medvedev Date: Fri, 27 Feb 2015 10:00:43 +0300 Subject: [PATCH] Added check for already defined macro NOMINMAX In order to avoid Visual C++ warning C4005 about macro redefinition when node.h is included in other project. --- src/node.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/node.h b/src/node.h index 4787783b6838..28b40aa0721b 100644 --- a/src/node.h +++ b/src/node.h @@ -25,7 +25,9 @@ # define _WIN32_WINNT 0x0501 #endif -#define NOMINMAX +#ifndef NOMINMAX +# define NOMINMAX +#endif #endif