X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d6e7df47c498c7eddf445d2abd0d2f800f3977b..dabd1377ce769598bda630dfad548be055e2a89b:/include/wx/dynlib.h diff --git a/include/wx/dynlib.h b/include/wx/dynlib.h index 90fb2f1dc7..a3c4f2d98b 100644 --- a/include/wx/dynlib.h +++ b/include/wx/dynlib.h @@ -18,7 +18,11 @@ #include "wx/setup.h" -#if wxUSE_DYNLIB_CLASS +#if wxUSE_DYNAMIC_LOADER + +#include "wx/dynload.h" // Use the new (version of) wxDynamicLibrary instead + +#elif wxUSE_DYNLIB_CLASS #include "wx/string.h" #include "wx/list.h" @@ -51,7 +55,7 @@ #elif defined(__DARWIN__) typedef void *wxDllType; #elif defined(__WXMAC__) - typedef CFragConnectionID wxDllType; + typedef void *wxDllType; #else # error "wxLibrary can't be compiled on this platform, sorry." #endif // OS @@ -85,7 +89,7 @@ public: if success pointer is not NULL, it will be filled with TRUE if everything went ok and FALSE otherwise */ - static wxDllType LoadLibrary(const wxString& libname, bool *success = NULL); + static wxDllType LoadLibrary(const wxString& libname, bool *success = 0); /* This function unloads the shared library previously loaded with @@ -109,14 +113,17 @@ public: Returns the pointer to the symbol or NULL on error. */ - static void * GetSymbol(wxDllType dllHandle, const wxString &name); + static void *GetSymbol(wxDllType dllHandle, + const wxString &name, + bool *success = NULL); // return the standard DLL extension (with leading dot) for this platform - static wxString GetDllExt(); + static const wxString &GetDllExt() { return ms_dllext; } private: // forbid construction of objects wxDllLoader(); + static const wxString ms_dllext; }; // ----------------------------------------------------------------------------