X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c118a47691b0017042d07601a9d9a1eb6cf5f7f7..cc27bb07169564cc43262821651f992271ea0eb8:/samples/dll/my_dll.cpp diff --git a/samples/dll/my_dll.cpp b/samples/dll/my_dll.cpp index 8097479b7b..4b67d6d04e 100644 --- a/samples/dll/my_dll.cpp +++ b/samples/dll/my_dll.cpp @@ -231,7 +231,9 @@ unsigned wxSTDCALL MyAppLauncher(void* event) // public DLL interface // ---------------------------------------------------------------------------- -extern "C" WXEXPORT +extern "C" +{ + void run_wx_gui_from_dll(const char *title) { // In order to prevent conflicts with hosting app's event loop, we @@ -291,9 +293,7 @@ void run_wx_gui_from_dll(const char *title) wxQueueEvent(wxApp::GetInstance(), event); } - -extern "C" WXEXPORT -void wx_dll_cleanup(void) +void wx_dll_cleanup() { wxCriticalSectionLocker lock(gs_wxStartupCS); @@ -311,3 +311,5 @@ void wx_dll_cleanup(void) CloseHandle(gs_wxMainThread); gs_wxMainThread = NULL; } + +} // extern "C"