summaryrefslogtreecommitdiff
path: root/src/node_version.h
diff options
context:
space:
mode:
authorRod Vagg <rod@vagg.org>2015-06-10 17:05:26 +1000
committerRod Vagg <rod@vagg.org>2015-06-25 15:22:27 +1000
commitdcbb9e1da65ac16e8ed783d0b2b82ad6c7de8dbc (patch)
tree4c449f742eee5542f73ddd02c191e50c8167f6b8 /src/node_version.h
parent8e9089ac3574682bac610b4b7a93a7915ad5ab8d (diff)
downloadandroid-node-v8-dcbb9e1da65ac16e8ed783d0b2b82ad6c7de8dbc.tar.gz
android-node-v8-dcbb9e1da65ac16e8ed783d0b2b82ad6c7de8dbc.tar.bz2
android-node-v8-dcbb9e1da65ac16e8ed783d0b2b82ad6c7de8dbc.zip
build: update build targets for io.js
PR-URL: https://github.com/nodejs/io.js/pull/1938 Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Alexis Campailla <alexis@janeasystems.com>
Diffstat (limited to 'src/node_version.h')
-rw-r--r--src/node_version.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/node_version.h b/src/node_version.h
index 5601174a21..196d49be17 100644
--- a/src/node_version.h
+++ b/src/node_version.h
@@ -12,23 +12,18 @@
#define NODE_STRINGIFY_HELPER(n) #n
#endif
-#if NODE_VERSION_IS_RELEASE
-# ifndef NODE_TAG
+#ifndef NODE_TAG
+# if NODE_VERSION_IS_RELEASE
# 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
+# else
# define NODE_TAG "-pre"
# endif
+#endif
+
# define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
NODE_STRINGIFY(NODE_PATCH_VERSION) \
NODE_TAG
-#endif
#define NODE_VERSION "v" NODE_VERSION_STRING