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:
Johan Bergström committed 2015-04-02 11:08:54 +11:00
1 parent 008078862e
commit f1e5a13516
1 file changed
+3 -1
+3 -1
View File
@@ -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)