From 44ed42bd971d58b294222d983cfe2908e021fb5d Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 24 Jul 2013 22:13:43 +0200 Subject: [PATCH] src: move NODE_MODULE_VERSION to node_version.h --- src/node.h | 10 ++-------- src/node_version.h | 8 ++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/node.h b/src/node.h index 4fcdd604cbd..7b7c565ef3b 100644 --- a/src/node.h +++ b/src/node.h @@ -58,8 +58,10 @@ # define SIGKILL 9 #endif +#include "node_version.h" /* NODE_MODULE_VERSION */ #include "uv.h" #include "v8.h" + #include /* struct stat */ #include #include @@ -202,14 +204,6 @@ struct node_module_struct { node_module_struct* get_builtin_module(const char *name); -/** - * When this version number is changed, node.js will refuse - * to load older modules. This should be done whenever - * an API is broken in the C++ side, including in v8 or - * other dependencies. - */ -#define NODE_MODULE_VERSION 0x000C /* v0.12 */ - #define NODE_STANDARD_MODULE_STUFF \ NODE_MODULE_VERSION, \ NULL, \ diff --git a/src/node_version.h b/src/node_version.h index 9aea5d56f5e..cf069aba88e 100644 --- a/src/node_version.h +++ b/src/node_version.h @@ -57,4 +57,12 @@ || ((major) == NODE_MAJOR_VERSION && (minor) < NODE_MINOR_VERSION) \ || ((major) == NODE_MAJOR_VERSION && (minor) == NODE_MINOR_VERSION && (patch) <= NODE_PATCH_VERSION)) +/** + * When this version number is changed, node.js will refuse + * to load older modules. This should be done whenever + * an API is broken in the C++ side, including in v8 or + * other dependencies. + */ +#define NODE_MODULE_VERSION 0x000C /* v0.12 */ + #endif /* NODE_VERSION_H */