mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-02-27 20:54:39 +01:00
Do not try .sos on macOS
This commit is contained in:
parent
fc4b85c4af
commit
537a28e14c
1 changed files with 4 additions and 4 deletions
|
@ -80,14 +80,14 @@ zathura_plugin_manager_add_dir(zathura_plugin_manager_t* plugin_manager, const c
|
||||||
static bool
|
static bool
|
||||||
check_suffix(const char* path)
|
check_suffix(const char* path)
|
||||||
{
|
{
|
||||||
if (g_str_has_suffix(path, ".so") == TRUE) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
if (g_str_has_suffix(path, ".dylib") == TRUE) {
|
if (g_str_has_suffix(path, ".dylib") == TRUE) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
if (g_str_has_suffix(path, ".so") == TRUE) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue