mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 22:52:30 +02:00
build: drop std::filesystem checks
The `<experimental/filesystem>` and `-lc++experimental` aren't needed since LLVM 9.0. And since we now require C++20, checking for the `<filesystem>` support shouldn't be necessary either.
This commit is contained in:
@ -16,7 +16,7 @@ waybar::AModule* waybar::Factory::makeModule(const std::string& name,
|
||||
auto hash_pos = name.find('#');
|
||||
auto ref = name.substr(0, hash_pos);
|
||||
auto id = hash_pos != std::string::npos ? name.substr(hash_pos + 1) : "";
|
||||
#if defined(__FreeBSD__) || (defined(__linux__) && !defined(NO_FILESYSTEM))
|
||||
#if defined(__FreeBSD__) || defined(__linux__)
|
||||
if (ref == "battery") {
|
||||
return new waybar::modules::Battery(id, bar_, config_[name]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user