[Spice-devel] [PATCH 05/11] client/windows/main: mingw32 provides PACKAGE_VERSION

Alon Levy alevy at redhat.com
Fri Jan 13 03:35:48 PST 2012


---
 client/windows/main.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/client/windows/main.cpp b/client/windows/main.cpp
index 6204498..46af699 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,
-- 
1.7.8.2



More information about the Spice-devel mailing list