X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bdd9b1ad478015df48d243aa045f01e4240afde5..bcd882b35e56a43f894551a43bbc4937034b7a0b:/wxPython/src/helpers.cpp diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index e7898642b9..1a23c8f8d6 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -97,6 +97,7 @@ PyObject* wxPyPtrTypeMap = NULL; // This gets run when the DLL is loaded. We just need to save a handle. //---------------------------------------------------------------------- +extern "C" BOOL WINAPI DllMain( HINSTANCE hinstDLL, // handle to DLL module DWORD fdwReason, // reason for calling function @@ -439,7 +440,7 @@ void wxPyApp::_BootstrapApp() setlocale(LC_NUMERIC, "C"); #endif - wxSystemOptions::SetOptionInt(wxT("mac.textcontrol-use-mlte"), 1); + wxSystemOptions::SetOption(wxT("mac.textcontrol-use-mlte"), 1); // The stock objects were all NULL when they were loaded into // SWIG generated proxies, so re-init those now...