mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-08 12:24:55 +00:00
client/windows/main: mingw32 provides PACKAGE_VERSION
This commit is contained in:
parent
4236d1440b
commit
54a7b36a57
@ -41,6 +41,13 @@ static void init_winsock()
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __MINGW32__
|
||||
// XXX: for mingw32 we can do both actually, but it seems easier
|
||||
// to just use the autoconf provided PACKAGE_VERSION.
|
||||
static void init_version_string()
|
||||
{
|
||||
}
|
||||
#else
|
||||
const char* PACKAGE_VERSION = "???";
|
||||
static char _version_string[40];
|
||||
|
||||
@ -68,6 +75,7 @@ static void init_version_string()
|
||||
(int)(file_info->dwFileVersionLS & 0x0ffff));
|
||||
PACKAGE_VERSION = _version_string;
|
||||
}
|
||||
#endif
|
||||
|
||||
int WINAPI WinMain(HINSTANCE hInstance,
|
||||
HINSTANCE hPrevInstance,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user