Add an option to the TortoiseGitMerge settings dialog to specify the number of contex...
[TortoiseGit.git] / src / TortoisePlink / VERSION.C
blob16347ca197a46455d6108fb1b9b0e07cfa53674d
1 /*\r
2  * PuTTY version numbering\r
3  */\r
4 \r
5 #define STR1(x) #x\r
6 #define STR(x) STR1(x)\r
7 \r
8 #ifdef INCLUDE_EMPTY_H\r
9 /*\r
10  * Horrible hack to force version.o to be rebuilt unconditionally in\r
11  * the automake world: empty.h is an empty header file, created by the\r
12  * makefile and forcibly updated every time make is run. Including it\r
13  * here causes automake to track it as a dependency, which will cause\r
14  * version.o to be rebuilt too.\r
15  *\r
16  * The space between # and include causes mkfiles.pl's dependency\r
17  * scanner (for all other makefile types) to ignore this include,\r
18  * which is correct because only the automake makefile passes\r
19  * -DINCLUDE_EMPTY_H to enable it.\r
20  */\r
21 # include "empty.h"\r
22 #endif\r
24 #if defined SNAPSHOT\r
26 #if defined SVN_REV\r
27 #define SNAPSHOT_TEXT STR(SNAPSHOT) ":r" STR(SVN_REV)\r
28 #else\r
29 #define SNAPSHOT_TEXT STR(SNAPSHOT)\r
30 #endif\r
32 char ver[] = "Development snapshot " SNAPSHOT_TEXT;\r
33 char sshver[] = "PuTTY-Snapshot-" SNAPSHOT_TEXT;\r
35 #undef SNAPSHOT_TEXT\r
37 #elif defined RELEASE\r
39 char ver[] = "Release " STR(RELEASE);\r
40 char sshver[] = "PuTTY-Release-" STR(RELEASE);\r
42 #elif defined PRERELEASE\r
44 char ver[] = "Pre-release " STR(PRERELEASE) ":r" STR(SVN_REV);\r
45 char sshver[] = "PuTTY-Prerelease-" STR(PRERELEASE) ":r" STR(SVN_REV);\r
47 #elif defined SVN_REV\r
49 char ver[] = "Custom build r" STR(SVN_REV) ", " __DATE__ " " __TIME__;\r
50 char sshver[] = "PuTTY-Custom-r" STR(SVN_REV);\r
52 #else\r
54 char ver[] = "Unidentified build, " __DATE__ " " __TIME__;\r
55 char sshver[] = "PuTTY-Local: " __DATE__ " " __TIME__;\r
57 #endif\r
59 /*\r
60  * SSH local version string MUST be under 40 characters. Here's a\r
61  * compile time assertion to verify this.\r
62  */\r
63 enum { vorpal_sword = 1 / (sizeof(sshver) <= 40) };\r