X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33a8563e66737797abdada2a7dc89c918b9567af..10eb1f1eac4f334f4acaae8199178131eeba5f74:/include/wx/dynlib.h diff --git a/include/wx/dynlib.h b/include/wx/dynlib.h index 8b3aacdfa2..c9eb6d36af 100644 --- a/include/wx/dynlib.h +++ b/include/wx/dynlib.h @@ -48,7 +48,7 @@ #elif defined(__WINDOWS__) # include // needed to get HMODULE typedef HMODULE wxDllType; -#elif defined(__APPLE__) && defined(__UNIX__) +#elif defined(__DARWIN__) typedef void *wxDllType; #elif defined(__WXMAC__) typedef CFragConnectionID wxDllType; @@ -171,7 +171,7 @@ private: // no copy ctor/assignment operators (or we'd try to unload the library // twice) - DECLARE_NO_COPY_CLASS(wxDynamicLibrary); + DECLARE_NO_COPY_CLASS(wxDynamicLibrary) }; // ---------------------------------------------------------------------------- @@ -229,8 +229,8 @@ extern wxLibraries wxTheLibraries; // ---------------------------------------------------------------------------- #define WXDLL_ENTRY_FUNCTION() \ -extern "C" wxClassInfo *wxGetClassFirst(); \ -wxClassInfo *wxGetClassFirst() { \ +extern "C" WXEXPORT wxClassInfo *wxGetClassFirst(); \ +const wxClassInfo *wxGetClassFirst() { \ return wxClassInfo::GetFirst(); \ }