Make Plugin working in Mac OSX.

This commit is contained in:
Phenom 2016-01-02 14:19:53 +01:00
parent b6b5f9cd17
commit c5e6f62382
5 changed files with 10 additions and 6 deletions

View file

@ -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