mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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: https://github.com/iojs/io.js/pull/1322 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
1 parent
008078862e
commit
f1e5a13516
1 file changed
+3
-1
+3
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user