From 27c6150ab350b7f0e4c7b7a1427baea026d7e12b Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Fri, 20 Jul 2012 15:41:08 +0200 Subject: Fix file version info --- src/version/version.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit 1.4.1