mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-21 13:06:15 +02:00
Build without wss support, if OpenSSL is not found
This commit is contained in:
parent
c105fecc5b
commit
2addf7cc3d
16 changed files with 68 additions and 27 deletions
|
@ -18,7 +18,6 @@
|
|||
|
||||
#ifndef NOMINMAX
|
||||
#define NOMINMAX
|
||||
#include <optional>
|
||||
#endif // NOMINMAX
|
||||
|
||||
// prototype/interface header file
|
||||
|
@ -88,7 +87,7 @@ void StreamUri::parse(const std::string& stream_uri)
|
|||
host = strutils::uriDecode(strutils::trim_copy(tmp.substr(0, pos)));
|
||||
std::string str_port;
|
||||
host = utils::string::split_left(host, ':', str_port);
|
||||
port = std::atoi(str_port.c_str());
|
||||
port = std::strtol(str_port.c_str(), nullptr, 10);
|
||||
if (port == 0)
|
||||
port = std::nullopt;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue