diff --git a/node.gyp b/node.gyp index 54bdb87669f176..ddb8e4c15fc358 100644 --- a/node.gyp +++ b/node.gyp @@ -452,6 +452,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' ]