src: fix NODE_DEPRECATED macro with old compilers
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 5 May 2015 16:17:55 +0000 (18:17 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Tue, 5 May 2015 16:50:47 +0000 (18:50 +0200)
commitb712af79a719b79e9c060bf4df54571e11870914
tree603dad67e4b8349e4ba604274f973a864be76aa2
parent71dc7152eee93c70ab1a078b07c620e6d67c97fe
src: fix NODE_DEPRECATED macro with old compilers

The `__attribute__((deprecated("warning")))` macro didn't exist until
gcc 4.5 and clang 2.9.

While io.js does not build with compilers that old, add-ons do.  Let's
make src/node.h compatible with such compilers, it's a public header.

PR-URL: https://github.com/iojs/io.js/pull/1626
Refs: https://github.com/iojs/io.js/issues/1619
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
src/node.h