Skip to content

Commit

Permalink
src: add check for already defined macro NOMINMAX
Browse files Browse the repository at this point in the history
In order to avoid Visual C++ warning C4005 about macro redefinition
when node.h is included in another project.

PR-URL: #986
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
pmed authored and bnoordhuis committed Feb 27, 2015
1 parent ae7a233 commit 4d1fa2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
# define _WIN32_WINNT 0x0501
#endif

#define NOMINMAX
#ifndef NOMINMAX
# define NOMINMAX
#endif

#endif

Expand Down

0 comments on commit 4d1fa2c

Please sign in to comment.