diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-07-20 15:41:08 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-07-20 15:41:08 +0200 |
commit | 27c6150ab350b7f0e4c7b7a1427baea026d7e12b (patch) | |
tree | 1bd1d2f3f350a0124c8bee3a6461890af6520a40 /src/version | |
parent | 0d87087fcea452604120faa77f6991e7573a8e3e (diff) |
Fix file version info
Diffstat (limited to 'src/version')
-rw-r--r-- | src/version/version.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/version/version.c b/src/version/version.c index 58218c26..3ddd7d41 100644 --- a/src/version/version.c +++ b/src/version/version.c @@ -28,6 +28,7 @@ char * comma () { +# if 0 /* for WDK version numbers */ int major, minor; char *version_string; /* nnnn,n,n,n format */ @@ -36,10 +37,19 @@ comma () if (sscanf (PACKAGE_VERSION, "%d-%d", &major, &minor) > 1) { sprintf (version_string, "%d,%d,0,0", major, minor); - } else + } + else { sprintf (version_string, "%d,0,0,0", major); } +#endif + int major, minor, build; + char *version_string; /* n,n,n,n format */ + + version_string = (char*) malloc (8); + + sscanf (PACKAGE_VERSION, "%d.%d.%d", &major, &minor, &build); + sprintf (version_string, "%d,%d,%d,0", major, minor, build); return version_string; } |