Skip to content

Commit f1e5a13

Browse files
committed
src: wrap MIN definition in infdef
Some platforms already define this; avoid redefining if that's the case. Found on OpenBSD 5.6. PR-URL: #1322 Reviewed-By: Brian White <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 0080788 commit f1e5a13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/node_file.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ using v8::Object;
3939
using v8::String;
4040
using v8::Value;
4141

42-
#define MIN(a, b) ((a) < (b) ? (a) : (b))
42+
#ifndef MIN
43+
# define MIN(a, b) ((a) < (b) ? (a) : (b))
44+
#endif
4345

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

0 commit comments

Comments
 (0)