]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dynload.cpp
added support for range types to runtime depersister
[wxWidgets.git] / src / common / dynload.cpp
index a1e4bafe6383511af054beb6ad9b7b43d0861bf8..a0844febf6bf29cb6e771fa5972d706241706e8d 100644 (file)
@@ -10,7 +10,7 @@
 // Licence:      wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "dynload.h"
 #endif
 
@@ -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)