diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index ebc8a7933..bd8f8130f 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -94,6 +94,7 @@ namespace fs = boost::filesystem; using Slic3r::_3DScene; using Slic3r::Preset; using Slic3r::PrintHostJob; +using Slic3r::GUI::format_wxstr; static const std::pair THUMBNAIL_SIZE_3MF = { 256, 256 }; diff --git a/src/slic3r/pchheader.hpp b/src/slic3r/pchheader.hpp index a33b8a3a6..ebdabe836 100644 --- a/src/slic3r/pchheader.hpp +++ b/src/slic3r/pchheader.hpp @@ -184,4 +184,6 @@ #include "libslic3r/ClipperUtils.hpp" #include "libslic3r/libslic3r.h" +#ifdef _WIN32 #include "GUI/format.hpp" +#endif // _WIN32