Closed legendecas closed 1 week ago
Review requested:
Landed in 8b2011a818a3ad324f4b44cc811fea8e56e2f15d
Thanks @legendecas !
Any idea when there'll be a 22.2.0 (or even 22.1.1) release that includes this so that nan users on Windows can be unblocked?
@mureinik Addons can be unblocked immediately with their own NOMINMAX
definition.
I didn't find any upcoming release plan at https://github.com/nodejs/Release/issues/1001. @nodejs/releasers would you mind chiming in on this? Thank you!
V8 and Node.js had defined
NOMINMAX
on Windows for a long time. In recent changes, V8 addedstd::numeric_limits::min
usages in its header files which caused addons withoutNOMINMAX
defines failed to compile.Define
NOMINMAX
in common.gypi so that addons can be compiled with the latest V8 header files.NAN includes
uv.h
beforenode.h
, which makes these defines effectiveless. Nevertheless, the include order should not be significant.Fixes: https://github.com/nodejs/nan/issues/968 Refs: https://github.com/nodejs/gyp-next/pull/244