summaryrefslogtreecommitdiffhomepage
path: root/gui/main.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-23 13:33:08 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-23 13:33:08 +0200
commit7c5df5ee51bf85f9de88793c7486729a6b7bb783 (patch)
treeb39273b4945c50b67bf5fc007456a9eb1e482f3d /gui/main.cpp
parent58f76e59cd28dd7239aa7b275e101a14629e9c3b (diff)
gui/main: fix link error on msvc++
Diffstat (limited to 'gui/main.cpp')
-rw-r--r--gui/main.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/gui/main.cpp b/gui/main.cpp
index 2f1158db..e34b4715 100644
--- a/gui/main.cpp
+++ b/gui/main.cpp
@@ -108,7 +108,11 @@ static void add_program_library_path()
}
#endif
-int main(int argc, char** argv)
+int
+#ifdef _MSC_VER
+WINAPI
+#endif
+main(int argc, char** argv)
{
#ifdef _WIN32
init_com_threading();
@@ -156,3 +160,15 @@ int main(int argc, char** argv)
return 0;
}
+
+#ifdef _MSC_VER
+int WINAPI
+WinMain (struct HINSTANCE__ *hInstance,
+ struct HINSTANCE__ *hPrevInstance,
+ char *lpszCmdLine,
+ int nCmdShow)
+{
+ return main (__argc, __argv);
+}
+
+#endif