mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
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:
@@ -115,5 +115,9 @@ std::string SharedLibrary::suffix()
|
||||
return suffixImpl();
|
||||
}
|
||||
|
||||
std::string SharedLibrary::getOSName(const std::string& name)
|
||||
{
|
||||
return prefix() + name + suffix();
|
||||
}
|
||||
|
||||
} // namespace Poco
|
||||
|
||||
Reference in New Issue
Block a user