From 4d1fa2ca97e3e8118c2156b6fe9dd5b4d705525a Mon Sep 17 00:00:00 2001 From: Pavel Medvedev Date: Fri, 27 Feb 2015 10:00:43 +0300 Subject: [PATCH] src: add check for already defined macro NOMINMAX In order to avoid Visual C++ warning C4005 about macro redefinition when node.h is included in another project. PR-URL: https://github.com/iojs/io.js/pull/986 Reviewed-By: Ben Noordhuis --- src/node.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/node.h b/src/node.h index 4787783b68..28b40aa072 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