Skip to content

Commit

Permalink
src: wrap MIN definition in infdef
Browse files Browse the repository at this point in the history
Some platforms already define this; avoid redefining if that's
the case. Found on OpenBSD 5.6.

PR-URL: #1322
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
jbergstroem committed Apr 2, 2015
1 parent 0080788 commit f1e5a13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ using v8::Object;
using v8::String;
using v8::Value;

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#ifndef MIN
# define MIN(a, b) ((a) < (b) ? (a) : (b))
#endif

#define TYPE_ERROR(msg) env->ThrowTypeError(msg)

Expand Down

0 comments on commit f1e5a13

Please sign in to comment.