2 * PuTTY version numbering
10 * Horrible hack to force version.o to be rebuilt unconditionally in
11 * the automake world: empty.h is an empty header file, created by the
12 * makefile and forcibly updated every time make is run. Including it
13 * here causes automake to track it as a dependency, which will cause
14 * version.o to be rebuilt too.
16 * The space between # and include causes mkfiles.pl's dependency
17 * scanner (for all other makefile types) to ignore this include,
18 * which is correct because only the automake makefile passes
19 * -DINCLUDE_EMPTY_H to enable it.
27 #define SNAPSHOT_TEXT STR(SNAPSHOT) ":r" STR(SVN_REV)
29 #define SNAPSHOT_TEXT STR(SNAPSHOT)
32 char ver
[] = "Development snapshot " SNAPSHOT_TEXT
;
33 char sshver
[] = "PuTTY-Snapshot-" SNAPSHOT_TEXT
;
39 char ver
[] = "Release " STR(RELEASE
);
40 char sshver
[] = "PuTTY-Release-" STR(RELEASE
);
42 #elif defined PRERELEASE
44 char ver
[] = "Pre-release " STR(PRERELEASE
) ":r" STR(SVN_REV
);
45 char sshver
[] = "PuTTY-Prerelease-" STR(PRERELEASE
) ":r" STR(SVN_REV
);
49 char ver
[] = "Custom build r" STR(SVN_REV
) ", " __DATE__
" " __TIME__
;
50 char sshver
[] = "PuTTY-Custom-r" STR(SVN_REV
);
54 char ver
[] = "Unidentified build, " __DATE__
" " __TIME__
;
55 char sshver
[] = "PuTTY-Local: " __DATE__
" " __TIME__
;
60 * SSH local version string MUST be under 40 characters. Here's a
61 * compile time assertion to verify this.
63 enum { vorpal_sword
= 1 / (sizeof(sshver
) <= 40) };