2 * PuTTY version numbering
\r
6 #define STR(x) STR1(x)
\r
11 #define SNAPSHOT_TEXT STR(SNAPSHOT) ":r" STR(SVN_REV)
\r
13 #define SNAPSHOT_TEXT STR(SNAPSHOT)
\r
16 char ver[] = "Development snapshot " SNAPSHOT_TEXT;
\r
17 char sshver[] = "PuTTY-Snapshot-" SNAPSHOT_TEXT;
\r
19 #undef SNAPSHOT_TEXT
\r
21 #elif defined RELEASE
\r
23 char ver[] = "Release " STR(RELEASE);
\r
24 char sshver[] = "PuTTY-Release-" STR(RELEASE);
\r
26 #elif defined PRERELEASE
\r
28 char ver[] = "Pre-release " STR(PRERELEASE) ":r" STR(SVN_REV);
\r
29 char sshver[] = "PuTTY-Prerelease-" STR(PRERELEASE) ":r" STR(SVN_REV);
\r
31 #elif defined SVN_REV
\r
33 char ver[] = "Custom build r" STR(SVN_REV) ", " __DATE__ " " __TIME__;
\r
34 char sshver[] = "PuTTY-Custom-r" STR(SVN_REV);
\r
38 char ver[] = "Unidentified build, " __DATE__ " " __TIME__;
\r
39 char sshver[] = "PuTTY-Local: " __DATE__ " " __TIME__;
\r
44 * SSH local version string MUST be under 40 characters. Here's a
\r
45 * compile time assertion to verify this.
\r
47 enum { vorpal_sword = 1 / (sizeof(sshver) <= 40) };
\r