mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-16 18:35:52 +08:00
Fix build
This commit is contained in:
parent
e7ab69634b
commit
08cbcd717e
@ -7,6 +7,7 @@
|
|||||||
#include <boost/algorithm/string/trim.hpp>
|
#include <boost/algorithm/string/trim.hpp>
|
||||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||||
#include <boost/lexical_cast.hpp>
|
#include <boost/lexical_cast.hpp>
|
||||||
|
#include <boost/asio/serial_port_service.hpp>
|
||||||
|
|
||||||
#if defined(__APPLE__) || defined(__OpenBSD__)
|
#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
@ -549,7 +550,7 @@ void
|
|||||||
GCodeSender::set_DTR(bool on)
|
GCodeSender::set_DTR(bool on)
|
||||||
{
|
{
|
||||||
#if defined(_WIN32) && !defined(__SYMBIAN32__)
|
#if defined(_WIN32) && !defined(__SYMBIAN32__)
|
||||||
boost::asio::serial_port_service::native_handle_type handle = this->serial.native_handle();
|
boost::asio::serial_port::native_handle_type handle = this->serial.native_handle();
|
||||||
if (on)
|
if (on)
|
||||||
EscapeCommFunction(handle, SETDTR);
|
EscapeCommFunction(handle, SETDTR);
|
||||||
else
|
else
|
||||||
|
@ -5,6 +5,11 @@
|
|||||||
|
|
||||||
#include "libslic3r.h"
|
#include "libslic3r.h"
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#define strncasecmp _strnicmp
|
||||||
|
#define strcasecmp _stricmp
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace boost { namespace filesystem { class directory_entry; }}
|
namespace boost { namespace filesystem { class directory_entry; }}
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user