build fails for unsupported os
This commit is contained in:
@@ -131,10 +131,12 @@ handlers::handlers(mgmt_app_config *config, httplib::Server *server)
|
||||
system(fmt::format(R"(xdg-open "http://127.0.0.1:{}/ui")",
|
||||
config_->get_api_port())
|
||||
.c_str());
|
||||
#else // error
|
||||
#elif defined(__APPLE__)
|
||||
system(
|
||||
fmt::format(R"(open "http://127.0.0.1:{}/ui")", config_->get_api_port())
|
||||
.c_str());
|
||||
#else
|
||||
build fails here
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user