Hi,
'NTDDI_VERSION=0x05010000',
'_WIN32_WINNT=0x0501',
'WINVER=0x0501'
to the gyp's targets -> defines section, alongside with _UNICODE / UNICODE, hoping to make it run on Windows XP. Now I'm pretty sure the compiler picked up these macros because TCHAR maps to wchar_t. But dependency walker still shows that my compiled .node file has dependency on FlsAlloc etc functions in kernel32.dll, which were introduced in Windows Vista.
I then tapped into C:\Users\User\.nw-gyp\0.8.0\common.gypi and all the dependencies, adding the above to the defines section, and got the same result.
I've also tried adding these defines to C:\Users\User\AppData\Roaming\npm\node_modules\nw-gyp\addon.gypi to no avail.
What am I doing wrong?
Best regards,
He Shiming