From cb8e58b58eba29d4c93509c74209684828c182af Mon Sep 17 00:00:00 2001 From: David Kocik Date: Wed, 7 Sep 2022 15:40:46 +0200 Subject: [PATCH] build fix --- src/slic3r/Utils/OctoPrint.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slic3r/Utils/OctoPrint.cpp b/src/slic3r/Utils/OctoPrint.cpp index 51888aa95b..0bdbeae5b6 100644 --- a/src/slic3r/Utils/OctoPrint.cpp +++ b/src/slic3r/Utils/OctoPrint.cpp @@ -29,9 +29,10 @@ namespace pt = boost::property_tree; namespace Slic3r { + +namespace { #ifdef WIN32 // 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) { // put ipv6 into [] brackets @@ -94,6 +95,7 @@ std::string substitute_host(const std::string& orig_addr, std::string sub_addr) return out; #endif } +#endif // WIN32 std::string escape_url(const std::string& unescaped) { std::string ret_val; @@ -109,7 +111,6 @@ std::string escape_url(const std::string& unescaped) return ret_val; } } //namespace -#endif // WIN32 OctoPrint::OctoPrint(DynamicPrintConfig *config) : m_host(config->opt_string("print_host")),