// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "dynload.h"
#endif
// 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;
}
(*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()
info = info->m_next;
}
+#if !wxUSE_EXTENDED_RTTI
// Set base pointers for each wxClassInfo
info = first;
while (info)
info->m_baseInfo2 = (wxClassInfo *)classTable.Get(info->GetBaseClassName2());
info = info->m_next;
}
+#endif
}
void *wxLibrary::GetSymbol(const wxString& symbname)