From: Vadim Zeitlin Date: Mon, 7 Dec 2009 03:04:27 +0000 (+0000) Subject: Correct placement of calling convention keyword: must follow the return type. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0530434efc53c30e66f1c7a10fcab6f893c9e98c?ds=sidebyside;hp=1ffe64ef70d0a320fd0f20d5c3700bc81b6fd890 Correct placement of calling convention keyword: must follow the return type. Using __stdcall before the return type results in a warning with VC6 and an error with VC9, place it after the return type. Also use wxSTDCALL instead of just __stdcall for potentially better compatibility with other compilers. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/dll/my_dll.cpp b/samples/dll/my_dll.cpp index 8b8dfd003a..99dbedc002 100644 --- a/samples/dll/my_dll.cpp +++ b/samples/dll/my_dll.cpp @@ -186,7 +186,7 @@ HANDLE gs_wxMainThread = NULL; // wx application startup code -- runs from its own thread -__stdcall unsigned MyAppLauncher(void* event) +unsigned wxSTDCALL MyAppLauncher(void* event) { // Note: The thread that called run_wx_gui_from_dll() holds gs_wxStartupCS // at this point and won't release it until we signal it.