DsoUtils Namespace Reference

Functions

std::string libNativeName (const std::string &libName)
 

Function Documentation

std::string DsoUtils::libNativeName ( const std::string libName)
inline

Definition at line 18 of file DsoUtils.h.

19 {
20 #if defined(_WIN32)
21  return libName+".dll";
22 #elif defined(__linux) || defined(__APPLE__)
23  return "lib"+libName+".so";
24 #else
25  // variant of the GIGO design pattern
26  return libName;
27 #endif
28 }