Do not try .sos on macOS

This commit is contained in:
Sebastian Ramacher 2018-03-04 20:45:17 +01:00
parent fc4b85c4af
commit 537a28e14c

View file

@ -80,14 +80,14 @@ zathura_plugin_manager_add_dir(zathura_plugin_manager_t* plugin_manager, const c
static bool
check_suffix(const char* path)
{
if (g_str_has_suffix(path, ".so") == TRUE) {
return true;
}
#ifdef __APPLE__
if (g_str_has_suffix(path, ".dylib") == TRUE) {
return true;
}
#else
if (g_str_has_suffix(path, ".so") == TRUE) {
return true;
}
#endif
return false;