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 <info@bnoordhuis.nl>
pull/976/merge
Pavel Medvedev 2015-02-27 10:00:43 +03:00 committed by Ben Noordhuis
parent ae7a23351f
commit 4d1fa2ca97
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@
# define _WIN32_WINNT 0x0501
#endif
#define NOMINMAX
#ifndef NOMINMAX
# define NOMINMAX
#endif
#endif