]> git.saurik.com Git - wxWidgets.git/commitdiff
#ifdef'd out some parts for non-supported systems.
authorKarsten Ballüder <ballueder@usa.net>
Tue, 18 Aug 1998 12:30:40 +0000 (12:30 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Tue, 18 Aug 1998 12:30:40 +0000 (12:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dynlib.cpp

index 6a49d9bc3a3d2f6abd70c082d397c5e16dcd2efa..177e21a773d0efa0b6b8c3cb72edcae0ffbbae38 100644 (file)
@@ -127,18 +127,21 @@ wxLibrary *wxLibraries::LoadLibrary(const wxString& name)
 
   if (!handle)
     return NULL;
-#endif
-#ifdef __WINDOWS__
+#elif defined( __WINDOWS__ )
   lib_name += ".dll";
 
   HMODULE handle = LoadLibrary(lib_name);
   if (!handle)
     return NULL;
+#else
+    return NULL;
 #endif
+#if defined(__LINUX__) || defined(__SGI__) || defined (__WINDOWS__)
   lib = new wxLibrary((void *)handle);
 
   m_loaded.Append(name.GetData(), lib);
   return lib;
+#endif
 }
 
 wxObject *wxLibraries::CreateObject(const wxString& path)