src: prefix ARCH and PLATFORM with NODE_
authorBert Belder <bertbelder@gmail.com>
Thu, 8 Jan 2015 12:05:51 +0000 (13:05 +0100)
committerBert Belder <bertbelder@gmail.com>
Thu, 8 Jan 2015 13:17:24 +0000 (14:17 +0100)
commite1fe270fd7788836b562cf0ddf179584c2ec9bdf
tree6a1ce91fb416d36c546195e062aa61d86166c7a1
parent858b5583456ef74fadbd9eca691e546b1c11eb16
src: prefix ARCH and PLATFORM with NODE_

The PLATFORM preprocessor symbol is defined in node.gyp, and on Windows
it's set to "win". This conflicts with a built-in preprocessor symbol
with a different value ("win32"), which makes the linker(!) complain.
Resolve this by renaming these symbols to NODE_ARCH and NODE_PLATFORM.

PR-URL: https://github.com/iojs/io.js/pull/261
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
node.gyp
src/node.cc