diff --git a/src/node_version.h b/src/node_version.h index 019561fe9aa1de..d65843c78b7f14 100644 --- a/src/node_version.h +++ b/src/node_version.h @@ -24,12 +24,12 @@ #define NODE_MAJOR_VERSION 15 #define NODE_MINOR_VERSION 11 -#define NODE_PATCH_VERSION 0 +#define NODE_PATCH_VERSION 1 #define NODE_VERSION_IS_LTS 0 #define NODE_VERSION_LTS_CODENAME "" -#define NODE_VERSION_IS_RELEASE 1 +#define NODE_VERSION_IS_RELEASE 0 #ifndef NODE_STRINGIFY #define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n) @@ -41,35 +41,34 @@ #endif #ifndef NODE_TAG -# if NODE_VERSION_IS_RELEASE -# define NODE_TAG "" -# else -# define NODE_TAG "-pre" -# endif +#if NODE_VERSION_IS_RELEASE +#define NODE_TAG "" +#else +#define NODE_TAG "-pre" +#endif #else // NODE_TAG is passed without quotes when rc.exe is run from msbuild -# define NODE_EXE_VERSION NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \ - NODE_STRINGIFY(NODE_MINOR_VERSION) "." \ - NODE_STRINGIFY(NODE_PATCH_VERSION) \ - NODE_STRINGIFY(NODE_TAG) +#define NODE_EXE_VERSION \ + NODE_STRINGIFY(NODE_MAJOR_VERSION) \ + "." NODE_STRINGIFY(NODE_MINOR_VERSION) "." NODE_STRINGIFY( \ + NODE_PATCH_VERSION) NODE_STRINGIFY(NODE_TAG) #endif -# define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \ - NODE_STRINGIFY(NODE_MINOR_VERSION) "." \ - NODE_STRINGIFY(NODE_PATCH_VERSION) \ - NODE_TAG +#define NODE_VERSION_STRING \ + NODE_STRINGIFY(NODE_MAJOR_VERSION) \ + "." NODE_STRINGIFY(NODE_MINOR_VERSION) "." NODE_STRINGIFY( \ + NODE_PATCH_VERSION) NODE_TAG #ifndef NODE_EXE_VERSION -# define NODE_EXE_VERSION NODE_VERSION_STRING +#define NODE_EXE_VERSION NODE_VERSION_STRING #endif #define NODE_VERSION "v" NODE_VERSION_STRING - -#define NODE_VERSION_AT_LEAST(major, minor, patch) \ - (( (major) < NODE_MAJOR_VERSION) \ - || ((major) == NODE_MAJOR_VERSION && (minor) < NODE_MINOR_VERSION) \ - || ((major) == NODE_MAJOR_VERSION && \ - (minor) == NODE_MINOR_VERSION && (patch) <= NODE_PATCH_VERSION)) +#define NODE_VERSION_AT_LEAST(major, minor, patch) \ + (((major) < NODE_MAJOR_VERSION) || \ + ((major) == NODE_MAJOR_VERSION && (minor) < NODE_MINOR_VERSION) || \ + ((major) == NODE_MAJOR_VERSION && (minor) == NODE_MINOR_VERSION && \ + (patch) <= NODE_PATCH_VERSION)) /** * Node.js will refuse to load modules that weren't compiled against its own @@ -93,6 +92,6 @@ // The NAPI_VERSION provided by this version of the runtime. This is the version // which the Node binary being built supports. -#define NAPI_VERSION 7 +#define NAPI_VERSION 7 #endif // SRC_NODE_VERSION_H_