build fix

This commit is contained in:
David Kocik 2022-09-07 15:40:46 +02:00
parent f6a38b240d
commit cb8e58b58e

View File

@ -29,9 +29,10 @@ namespace pt = boost::property_tree;
namespace Slic3r { namespace Slic3r {
namespace {
#ifdef WIN32 #ifdef WIN32
// Workaround for Windows 10/11 mDNS resolve issue, where two mDNS resolves in succession fail. // Workaround for Windows 10/11 mDNS resolve issue, where two mDNS resolves in succession fail.
namespace {
std::string substitute_host(const std::string& orig_addr, std::string sub_addr) std::string substitute_host(const std::string& orig_addr, std::string sub_addr)
{ {
// put ipv6 into [] brackets // put ipv6 into [] brackets
@ -94,6 +95,7 @@ std::string substitute_host(const std::string& orig_addr, std::string sub_addr)
return out; return out;
#endif #endif
} }
#endif // WIN32
std::string escape_url(const std::string& unescaped) std::string escape_url(const std::string& unescaped)
{ {
std::string ret_val; std::string ret_val;
@ -109,7 +111,6 @@ std::string escape_url(const std::string& unescaped)
return ret_val; return ret_val;
} }
} //namespace } //namespace
#endif // WIN32
OctoPrint::OctoPrint(DynamicPrintConfig *config) : OctoPrint::OctoPrint(DynamicPrintConfig *config) :
m_host(config->opt_string("print_host")), m_host(config->opt_string("print_host")),