Permalink
Browse files

Add support for full four part version numbers.

  • Loading branch information...
1 parent e60a447 commit 00a6d3c71d6fe4033e46d171c39a785a8c5acaaa @rmcardle rmcardle committed Feb 26, 2013
Showing with 34 additions and 0 deletions.
  1. +18 −0 VERSION.C
  2. +16 −0 WINDOWS/VERSION.RC2
View
@@ -33,6 +33,24 @@ char sshver[] = "PuTTY-Prerelease-" STR(PRERELEASE) ":r" STR(SVN_REV);
char ver[] = "Custom build r" STR(SVN_REV) ", " __DATE__ " " __TIME__;
char sshver[] = "PuTTY-Custom-r" STR(SVN_REV);
+#elif defined PUTTYNG
+
+#ifndef NG_VER_MAJOR
+#define NG_VER_MAJOR 0
+#endif
+#ifndef NG_VER_MINOR
+#define NG_VER_MINOR 0
+#endif
+#ifndef NG_VER_BUILD
+#define NG_VER_BUILD 0
+#endif
+#ifndef NG_VER_REVISION
+#define NG_VER_REVISION 0
+#endif
+#define RELEASE NG_VER_MAJOR.NG_VER_MINOR
+#define RELEASE_FULL RELEASE.NG_VER_BUILD.NG_VER_REVISION
+char ver[] = "Release " STR(RELEASE_FULL);
+char sshver[] = "PuTTY-Release-" STR(RELEASE);
#else
char ver[] = "Unidentified build, " __DATE__ " " __TIME__;
View
@@ -75,6 +75,22 @@
#define BINARY_VERSION BASE_VERSION,SVN_REV,0
#endif
+#elif defined PUTTYNG
+#ifndef NG_VER_MAJOR
+#define NG_VER_MAJOR 0
+#endif
+#ifndef NG_VER_MINOR
+#define NG_VER_MINOR 0
+#endif
+#ifndef NG_VER_BUILD
+#define NG_VER_BUILD 0
+#endif
+#ifndef NG_VER_REVISION
+#define NG_VER_REVISION 0
+#endif
+#define RELEASE NG_VER_MAJOR.NG_VER_MINOR.NG_VER_BUILD.NG_VER_REVISION
+#define VERSION_TEXT "Release " STR(RELEASE)
+#define BINARY_VERSION NG_VER_MAJOR,NG_VER_MINOR,NG_VER_BUILD,NG_VER_REVISION
#else
/* We can't reliably get the same date and time as version.c, so

0 comments on commit 00a6d3c

Please sign in to comment.