summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-01-13 12:42:09 +0200
committerAlon Levy <alevy@redhat.com>2012-01-13 17:42:23 +0200
commit54a7b36a57618b7c43d64c6b063fe367d700be48 (patch)
tree07f4b97cf63633859cde0e31c3b370f64153a707 /client
parent4236d1440b328223fec50a0367647740f38abcd6 (diff)
downloadspice-54a7b36a57618b7c43d64c6b063fe367d700be48.tar.gz
spice-54a7b36a57618b7c43d64c6b063fe367d700be48.tar.xz
spice-54a7b36a57618b7c43d64c6b063fe367d700be48.zip
client/windows/main: mingw32 provides PACKAGE_VERSION
Diffstat (limited to 'client')
-rw-r--r--client/windows/main.cpp8
1 files changed, 8 insertions, 0 deletions
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,