Skip to content

Commit 032e6c8

Browse files
authored
Fix non-windows build (OrcaSlicer#9509)
1 parent 9913736 commit 032e6c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/OrcaSlicer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6033,6 +6033,7 @@ bool CLI::setup(int argc, char **argv)
60336033
}
60346034

60356035
void attach_console_on_demand(){
6036+
#ifdef _WIN32
60366037
static bool console_attached = false;
60376038

60386039
if (!console_attached) {
@@ -6072,6 +6073,7 @@ void attach_console_on_demand(){
60726073
boost::nowide::cin.clear();
60736074
}
60746075
}
6076+
#endif
60756077
}
60766078
void CLI::print_help(bool include_print_options, PrinterTechnology printer_technology) const
60776079
{

0 commit comments

Comments
 (0)