diff --git a/source/backend/utils/PluginDiscovery.cpp b/source/backend/utils/PluginDiscovery.cpp index cd1a3a8dc..0aca1bc23 100644 --- a/source/backend/utils/PluginDiscovery.cpp +++ b/source/backend/utils/PluginDiscovery.cpp @@ -435,12 +435,10 @@ static std::vector findVST3s(const char* const pluginPath) std::vector ret; - #if defined(CARLA_OS_MAC) - static constexpr const uint flags = File::findDirectories; - #elif defined(CARLA_OS_WIN) + #if defined(CARLA_OS_WIN) static constexpr const uint flags = File::findDirectories|File::findFiles; #else - static constexpr const uint flags = File::findFiles; + static constexpr const uint flags = File::findDirectories; #endif for (String *it = splitPaths.begin(), *end = splitPaths.end(); it != end; ++it)