067a15ea |
1 | /* |
2 | * PuTTY version numbering |
3 | */ |
4 | |
5 | #define STR1(x) #x |
6 | #define STR(x) STR1(x) |
7 | |
8 | #if defined SNAPSHOT |
9 | |
1cb3ebfe |
10 | #if defined SVN_REV |
11 | #define SNAPSHOT_TEXT STR(SNAPSHOT) ":r" STR(SVN_REV) |
12 | #else |
13 | #define SNAPSHOT_TEXT STR(SNAPSHOT) |
14 | #endif |
15 | |
16 | char ver[] = "Development snapshot " SNAPSHOT_TEXT; |
17 | char sshver[] = "PuTTY-Snapshot-" SNAPSHOT_TEXT; |
18 | |
19 | #undef SNAPSHOT_TEXT |
067a15ea |
20 | |
21 | #elif defined RELEASE |
22 | |
23 | char ver[] = "Release " STR(RELEASE); |
900a4ee6 |
24 | char sshver[] = "PuTTY-Release-" STR(RELEASE); |
067a15ea |
25 | |
30ea5678 |
26 | #elif defined SVN_REV |
27 | |
28 | char ver[] = "Custom build r" STR(SVN_REV); |
29 | char sshver[] = "PuTTY-Custom-r" STR(SVN_REV); |
30 | |
067a15ea |
31 | #else |
32 | |
33 | char ver[] = "Unidentified build, " __DATE__ " " __TIME__; |
900a4ee6 |
34 | char sshver[] = "PuTTY-Local: " __DATE__ " " __TIME__; |
067a15ea |
35 | |
36 | #endif |
900a4ee6 |
37 | |
38 | /* |
39 | * SSH local version string MUST be under 40 characters. Here's a |
40 | * compile time assertion to verify this. |
41 | */ |
42 | enum { vorpal_sword = 1 / (sizeof(sshver) <= 40) }; |