X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1948bb3274f2d39649c63b88f0e8781d0fc9b693..b08c90ca63723536960122fc798f673af1faed13:/src/common/dynload.cpp diff --git a/src/common/dynload.cpp b/src/common/dynload.cpp index a1e4bafe63..9494d42fb9 100644 --- a/src/common/dynload.cpp +++ b/src/common/dynload.cpp @@ -10,7 +10,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dynload.h" #endif @@ -58,7 +58,7 @@ public: // TODO: create ms_classes on demand, why always preallocate it? virtual bool OnInit() { - wxPluginLibrary::ms_classes = new wxDLImports(wxKEY_STRING); + wxPluginLibrary::ms_classes = new wxDLImports; wxPluginManager::CreateManifest(); return TRUE; } @@ -159,16 +159,6 @@ void wxPluginLibrary::UpdateClassInfo() (*ms_classes)[info->m_className] = this; } } - -#if wxUSE_EXTENDED_RTTI == 0 - for(info = m_after; info != m_before; info = info->m_next) - { - if( info->m_baseClassName1 ) - info->m_baseInfo1 = (wxClassInfo *)t->Get(info->m_baseClassName1); - if( info->m_baseClassName2 ) - info->m_baseInfo2 = (wxClassInfo *)t->Get(info->m_baseClassName2); - } -#endif } void wxPluginLibrary::RestoreClassInfo() @@ -531,6 +521,7 @@ void wxLibrary::PrepareClasses(wxClassInfo *first) info = info->m_next; } +#if !wxUSE_EXTENDED_RTTI // Set base pointers for each wxClassInfo info = first; while (info) @@ -541,6 +532,7 @@ void wxLibrary::PrepareClasses(wxClassInfo *first) info->m_baseInfo2 = (wxClassInfo *)classTable.Get(info->GetBaseClassName2()); info = info->m_next; } +#endif } void *wxLibrary::GetSymbol(const wxString& symbname)