]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dynload.cpp
Tweaked the layout sample a bit for wxGridBagSizer
[wxWidgets.git] / src / common / dynload.cpp
index e342678774bf0f193c9f201bb4d63f74dc97a94f..9494d42fb97f701cfe8388f8edb0a213cecab97a 100644 (file)
@@ -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;
     }