1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-13 00:57:33 -05:00

Added automatic version distinguishing code, to differentiate releases

from nightly builds from random development builds

[originally from svn r28]
This commit is contained in:
Simon Tatham
1999-02-09 15:18:34 +00:00
parent 0fc1c0c9c9
commit 3b1389a474
6 changed files with 56 additions and 18 deletions

20
version.c Normal file
View File

@ -0,0 +1,20 @@
/*
* PuTTY version numbering
*/
#define STR1(x) #x
#define STR(x) STR1(x)
#if defined SNAPSHOT
char ver[] = "Development snapshot " STR(SNAPSHOT);
#elif defined RELEASE
char ver[] = "Release " STR(RELEASE);
#else
char ver[] = "Unidentified build, " __DATE__ " " __TIME__;
#endif