]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/helpers.cpp
Check for TypeError too
[wxWidgets.git] / wxPython / src / helpers.cpp
index e7898642b971b477ff2a2668dbfbcb4dfe334dca..1a23c8f8d671ad2b77894cc29b48abb2dc4073b2 100644 (file)
@@ -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...