summaryrefslogtreecommitdiff
path: root/src/node_version.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_version.h')
-rw-r--r--src/node_version.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/node_version.h b/src/node_version.h
index 15cdfa8df1..1eec075ec2 100644
--- a/src/node_version.h
+++ b/src/node_version.h
@@ -28,25 +28,27 @@
#define NODE_VERSION_IS_RELEASE 0
-#ifndef NODE_TAG
-# define NODE_TAG ""
-#endif
-
#ifndef NODE_STRINGIFY
#define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)
#define NODE_STRINGIFY_HELPER(n) #n
#endif
#if NODE_VERSION_IS_RELEASE
+# ifndef NODE_TAG
+# define NODE_TAG ""
+# endif
# define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
NODE_STRINGIFY(NODE_PATCH_VERSION) \
NODE_TAG
#else
+# ifndef NODE_TAG
+# define NODE_TAG "-pre"
+# endif
# define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
NODE_STRINGIFY(NODE_PATCH_VERSION) \
- NODE_TAG "-pre"
+ NODE_TAG
#endif
#define NODE_VERSION "v" NODE_VERSION_STRING