Browse Source

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>
v1.8.0-commit
Pavel Medvedev 10 years ago
committed by Ben Noordhuis
parent
commit
4d1fa2ca97
  1. 2
      src/node.h

2
src/node.h

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

Loading…
Cancel
Save