From 0530434efc53c30e66f1c7a10fcab6f893c9e98c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 7 Dec 2009 03:04:27 +0000 Subject: [PATCH 1/1] 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 --- samples/dll/my_dll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.45.2