path: root/src/winmain/qtmain_winrt.cpp
diff options
authorAndrew Knight <>2014-01-13 09:23:46 +0200
committerThe Qt Project <>2014-01-13 13:24:11 +0100
commitdc9b194f6b4da0b4c29b83224bb3af9635be1773 (patch)
tree902039d3789a74836c4f0cfc58e29974bf76f08b /src/winmain/qtmain_winrt.cpp
parent109e155c3fa3e9260fb1888236f82771ca5af06d (diff)
WinRT winmain: fix linker error on x86 compilers
The x86 PC and Phone emulator compilers choke on WinMain's signature not matching the stdcall exported version. This fixes the issue. Change-Id: I30d8a5dab67f3f1f15869abe2928326e3401dc43 Reviewed-by: Maurice Kalinowski <>
Diffstat (limited to 'src/winmain/qtmain_winrt.cpp')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/winmain/qtmain_winrt.cpp b/src/winmain/qtmain_winrt.cpp
index aead5ca0d0..18bd619383 100644
--- a/src/winmain/qtmain_winrt.cpp
+++ b/src/winmain/qtmain_winrt.cpp
@@ -159,7 +159,7 @@ private:
// Main entry point for Appx containers
-int WinMain()
+int __stdcall WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
int argc = 0;
char **argv, **env;