1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-26 19:22:22 -05:00

Fix file version info

This commit is contained in:
Berke Viktor 2012-07-20 15:41:08 +02:00
parent 0d87087fce
commit 27c6150ab3

View File

@ -28,6 +28,7 @@
char * char *
comma () comma ()
{ {
# if 0 /* for WDK version numbers */
int major, minor; int major, minor;
char *version_string; /* nnnn,n,n,n format */ char *version_string; /* nnnn,n,n,n format */
@ -36,10 +37,19 @@ comma ()
if (sscanf (PACKAGE_VERSION, "%d-%d", &major, &minor) > 1) if (sscanf (PACKAGE_VERSION, "%d-%d", &major, &minor) > 1)
{ {
sprintf (version_string, "%d,%d,0,0", major, minor); sprintf (version_string, "%d,%d,0,0", major, minor);
} else }
else
{ {
sprintf (version_string, "%d,0,0,0", major); 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; return version_string;
} }