mirror of
https://github.com/winscp/winscp.git
synced 2026-10-24 02:28:55 +03:00
with aim to eventually update the code to need as little warnings disabled as needed. Some code updates (and even fixes) to avoid warning done already Source commit: 5c45a6f56c52e7b0c5034ed9980cd65259a7372b
37 lines
681 B
C
37 lines
681 B
C
/*
|
|
* PuTTY version numbering
|
|
*/
|
|
|
|
/*
|
|
* The difficult part of deciding what goes in these version strings
|
|
* is done in Buildscr, and then written into version.h. All we have
|
|
* to do here is to drop it into variables of the right names.
|
|
*/
|
|
|
|
#include "putty.h"
|
|
#include "ssh.h"
|
|
|
|
#include "version.h"
|
|
|
|
#ifndef WINSCP
|
|
|
|
const char ver[] = TEXTVER;
|
|
const char sshver[] = SSHVER;
|
|
|
|
/*
|
|
* SSH local version string MUST be under 40 characters. Here's a
|
|
* compile time assertion to verify this.
|
|
*/
|
|
enum { vorpal_sword = 1 / (sizeof(sshver) <= 40) };
|
|
|
|
#else
|
|
|
|
#include "puttyexp.h"
|
|
|
|
const char * get_putty_version(void)
|
|
{
|
|
return TEXTVER;
|
|
}
|
|
|
|
#endif
|