More compilation changes for Win32
This commit is contained in:
parent
ca48501f91
commit
9a8724cdd0
@ -1,9 +1,33 @@
|
|||||||
#ifndef _myinit_h_
|
#ifndef _myinit_h_
|
||||||
#define _myinit_h_
|
#define _myinit_h_
|
||||||
|
|
||||||
// this needs to be included early for MSVC (listing it in Build.PL is not enough)
|
// undef some macros set by Perl which cause compilation errors on Win32
|
||||||
#undef read
|
#undef read
|
||||||
#undef seekdir
|
#undef seekdir
|
||||||
|
#undef bind
|
||||||
|
#undef send
|
||||||
|
#undef connect
|
||||||
|
#undef wait
|
||||||
|
#undef accept
|
||||||
|
#undef close
|
||||||
|
#undef open
|
||||||
|
#undef write
|
||||||
|
#undef socket
|
||||||
|
#undef listen
|
||||||
|
#undef shutdown
|
||||||
|
#undef ioctl
|
||||||
|
#undef getpeername
|
||||||
|
#undef rect
|
||||||
|
#undef setsockopt
|
||||||
|
#undef getsockopt
|
||||||
|
#undef getsockname
|
||||||
|
#undef gethostname
|
||||||
|
#undef select
|
||||||
|
#undef socketpair
|
||||||
|
#undef recvfrom
|
||||||
|
#undef sendto
|
||||||
|
|
||||||
|
// these need to be included early for Win32 (listing it in Build.PL is not enough)
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
#ifdef BOOST_LIBS
|
#ifdef BOOST_LIBS
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <myinit.h>
|
|
||||||
#include "libslic3r/GCodeSender.hpp"
|
#include "libslic3r/GCodeSender.hpp"
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user