diff --git a/node.gyp b/node.gyp index 1f9d34b200966c..cb0036629e21a1 100644 --- a/node.gyp +++ b/node.gyp @@ -446,6 +446,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' ]