diff options
author | isaacs <i@izs.me> | 2012-06-21 13:39:54 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-06-21 13:55:40 -0700 |
commit | 8988af58f4126783eabaacfcaf6d158cf92b8d99 (patch) | |
tree | 7d7e655836d38f261d5f7c7cb36ee2c58c224c3a | |
parent | 48c3d2004180dda8d0d32386299dd918a0804389 (diff) | |
download | nodejs-8988af58f4126783eabaacfcaf6d158cf92b8d99.tar.gz nodejs-8988af58f4126783eabaacfcaf6d158cf92b8d99.tar.bz2 nodejs-8988af58f4126783eabaacfcaf6d158cf92b8d99.zip |
Externalize node::no_deprecation
-rw-r--r-- | src/ev-emul.h | 2 | ||||
-rw-r--r-- | src/node.h | 2 | ||||
-rw-r--r-- | src/node_internals.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/ev-emul.h b/src/ev-emul.h index 404e77901..cf924c744 100644 --- a/src/ev-emul.h +++ b/src/ev-emul.h @@ -88,7 +88,7 @@ extern "C" { #define __uv_warn_of(old_, new_) \ do { \ - if (__uv_warn_##old_ || no_deprecation) break; \ + if (__uv_warn_##old_ || node::no_deprecation) break; \ __uv_warn_##old_ = 1; \ fputs("WARNING: " #old_ " is deprecated, use " #new_ "\n", stderr); \ } \ diff --git a/src/node.h b/src/node.h index 230d74021..2e4435071 100644 --- a/src/node.h +++ b/src/node.h @@ -85,6 +85,8 @@ namespace node { +NODE_EXTERN extern bool no_deprecation; + NODE_EXTERN int Start(int argc, char *argv[]); char** Init(int argc, char *argv[]); diff --git a/src/node_internals.h b/src/node_internals.h index 3f9eec219..80aa4e536 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -28,8 +28,6 @@ namespace node { -extern bool no_deprecation; - #ifdef _WIN32 // emulate snprintf() on windows, _snprintf() doesn't zero-terminate the buffer // on overflow... |