minor changes to eliminate unused parameter warning + some cleanup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-08-02 22:47:40 +00:00
parent 13e51f3a55
commit 350fffae72

View File

@@ -391,17 +391,39 @@ void *wxDynamicLibrary::GetSymbol(const wxString &name, bool *success) const
/*static*/ /*static*/
wxString wxDynamicLibrary::CanonicalizeName(const wxString& name, wxString
wxDynamicLibraryCategory cat) wxDynamicLibrary::CanonicalizeName(const wxString& name,
{ wxDynamicLibraryCategory
#ifdef __UNIX__ #ifdef __UNIX__
if ( cat == wxDL_MODULE ) cat
return name + GetDllExt(); #else // !__UNIX__
else WXUNUSED(cat)
return wxString(_T("lib")) + name + GetDllExt(); #endif // __UNIX__/!__UNIX__
#else )
return name + GetDllExt(); {
#endif wxString nameCanonic;
// under Unix the library names usualyl start with "lib" prefix, add it
#ifdef __UNIX__
switch ( cat )
{
default:
wxFAIL_MSG( _T("unknown wxDynamicLibraryCategory value") );
// fall through
case wxDL_MODULE:
// don't do anything for modules, their names are arbitrary
break;
case wxDL_LIBRARY:
// library names should start with "lib" under Unix
nameCanonic = _T("lib");
break;
}
#endif // __UNIX__
nameCanonic << name << GetDllExt();
return nameCanonic;
} }
/*static*/ /*static*/
@@ -440,6 +462,7 @@ wxString wxDynamicLibrary::CanonicalizePluginName(const wxString& name,
#define wxDLLVER(x,y,z) #x #y #z #define wxDLLVER(x,y,z) #x #y #z
#endif #endif
#endif #endif
suffix << wxString::FromAscii(wxDLLVER(wxMAJOR_VERSION, wxMINOR_VERSION, suffix << wxString::FromAscii(wxDLLVER(wxMAJOR_VERSION, wxMINOR_VERSION,
wxRELEASE_NUMBER)); wxRELEASE_NUMBER));
#undef wxDLLVER #undef wxDLLVER