add SharedLibrary::getOSName() to improve portability of shared library

real filename over different OS like Linux/Unix/Cygwin & Windows.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
FrancisANDRE
2015-09-19 08:28:26 +02:00
parent b2ef29528d
commit a4479552b6
4 changed files with 12 additions and 3 deletions

View File

@@ -115,5 +115,9 @@ std::string SharedLibrary::suffix()
return suffixImpl();
}
std::string SharedLibrary::getOSName(const std::string& name)
{
return prefix() + name + suffix();
}
} // namespace Poco