diff --git a/node.gyp b/node.gyp index 81dfe960257c5b..ca5eb730129224 100644 --- a/node.gyp +++ b/node.gyp @@ -445,6 +445,10 @@ 'FD_SETSIZE=1024', # we need to use node's preferred "win32" rather than gyp's preferred "win" 'NODE_PLATFORM="win32"', + # Stop from defining macros that conflict with + # std::min() and std::max(). We don't use (much) + # but we still inherit it from uv.h. + 'NOMINMAX', '_UNICODE=1', ], 'libraries': [ '-lpsapi.lib' ]