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")",
|
system(fmt::format(R"(xdg-open "http://127.0.0.1:{}/ui")",
|
||||||
config_->get_api_port())
|
config_->get_api_port())
|
||||||
.c_str());
|
.c_str());
|
||||||
#else // error
|
#elif defined(__APPLE__)
|
||||||
system(
|
system(
|
||||||
fmt::format(R"(open "http://127.0.0.1:{}/ui")", config_->get_api_port())
|
fmt::format(R"(open "http://127.0.0.1:{}/ui")", config_->get_api_port())
|
||||||
.c_str());
|
.c_str());
|
||||||
|
#else
|
||||||
|
build fails here
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user