From 54a7b36a57618b7c43d64c6b063fe367d700be48 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Fri, 13 Jan 2012 12:42:09 +0200 Subject: client/windows/main: mingw32 provides PACKAGE_VERSION --- client/windows/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client/windows') diff --git a/client/windows/main.cpp b/client/windows/main.cpp index 62044980..46af699b 100644 --- a/client/windows/main.cpp +++ b/client/windows/main.cpp @@ -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, -- cgit