This commit is contained in:
@@ -99,14 +99,14 @@ void set_last_error_code(int error_code);
|
||||
-> bool;
|
||||
#endif // defined(PROJECT_ENABLE_PUGIXML)
|
||||
|
||||
#if defined(PROJECT_ENABLE_FMT)
|
||||
#if defined(PROJECT_ENABLE_SPDLOG) || defined(PROJECT_ENABLE_FMT)
|
||||
[[nodiscard]] auto launchctl_command(std::string_view label,
|
||||
launchctl_type type) -> int;
|
||||
|
||||
[[nodiscard]] auto remove_launchd_plist(std::string_view plist_path,
|
||||
std::string_view label,
|
||||
bool should_bootout) -> bool;
|
||||
#endif // defined(PROJECT_ENABLE_FMT)
|
||||
#endif // defined(PROJECT_ENABLE_SPDLOG) || defined(PROJECT_ENABLE_FMT)
|
||||
#endif // defined(__APPLE__)
|
||||
|
||||
// template implementations
|
||||
|
@@ -368,7 +368,7 @@ auto generate_launchd_plist(const plist_cfg &cfg, bool overwrite_existing)
|
||||
}
|
||||
#endif // defined(PROJECT_ENABLE_PUGIXML)
|
||||
|
||||
#if defined(PROJECT_ENABLE_FMT)
|
||||
#if defined(PROJECT_ENABLE_SPDLOG) || defined(PROJECT_ENABLE_FMT)
|
||||
auto launchctl_command(std::string_view label, launchctl_type type) -> int {
|
||||
switch (type) {
|
||||
case launchctl_type::bootout:
|
||||
@@ -417,7 +417,7 @@ auto remove_launchd_plist(std::string_view plist_path, std::string_view label,
|
||||
|
||||
return res == 0;
|
||||
}
|
||||
#endif // defined(PROJECT_ENABLE_FMT)
|
||||
#endif // defined(PROJECT_ENABLE_SPDLOG) || defined(PROJECT_ENABLE_FMT)
|
||||
#endif // defined(__APPLE__)
|
||||
} // namespace repertory::utils
|
||||
|
||||
|
Reference in New Issue
Block a user