mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Make Plugin working in Mac OSX.
This commit is contained in:
parent
b6b5f9cd17
commit
c5e6f62382
5 changed files with 10 additions and 6 deletions
|
@ -82,6 +82,8 @@ bool RsPluginManager::acceptablePluginName(const std::string& name)
|
|||
//
|
||||
#ifdef WINDOWS_SYS
|
||||
return name.size() > 4 && name.substr(name.size() - 4) == ".dll";
|
||||
#elif defined(__MACH__)
|
||||
return name.size() > 6 && !strcmp(name.c_str()+name.size()-6,".dylib") ;
|
||||
#else
|
||||
return name.size() > 3 && !strcmp(name.c_str()+name.size()-3,".so") ;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue