From 775a54846fc01ec9e977bad7cfa810ac1789d5b0 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Tue, 20 Aug 2019 17:46:19 +0200 Subject: [PATCH] Fixed compilation of Win32 message boxes on unix systems. --- src/PrusaSlicer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PrusaSlicer.cpp b/src/PrusaSlicer.cpp index 81422f4a88..a75635ae60 100644 --- a/src/PrusaSlicer.cpp +++ b/src/PrusaSlicer.cpp @@ -71,7 +71,7 @@ int CLI::run(int argc, char **argv) "You may need to reconfigure the missing locales, likely by running the \"locale-gen\"" and \"dpkg-reconfigure locales\" commands.\n" #endif SLIC3R_APP_NAME " will now terminate.\n\n") + ex.what(); - #ifdef SLIC3R_GUI + #if defined(_WIN32) && defined(SLIC3R_GUI) if (m_actions.empty()) // Empty actions means Slicer is executed in the GUI mode. Show a GUI message. MessageBoxA(NULL, text.c_str(), caption.c_str(), MB_OK | MB_ICONERROR);