summaryrefslogtreecommitdiffstats
path: root/client/windows/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/windows/main.cpp')
-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,