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:
20
version.c
Normal file
20
version.c
Normal 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
|
Reference in New Issue
Block a user