mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 06:55:53 +08:00
Trying to fix the windows build
This commit is contained in:
parent
eb2debc2c6
commit
152e236dda
@ -2642,6 +2642,10 @@ std::string GCode::extrude_support(const ExtrusionEntityCollection &support_fill
|
|||||||
return gcode;
|
return gcode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool GCode::GCodeOutputStream::is_error() const { return ::ferror(f); }
|
||||||
|
void GCode::GCodeOutputStream::flush() { ::fflush(f); }
|
||||||
|
void GCode::GCodeOutputStream::close() { if (f) ::fclose(f); }
|
||||||
|
|
||||||
void GCode::GCodeOutputStream::write(const char *what)
|
void GCode::GCodeOutputStream::write(const char *what)
|
||||||
{
|
{
|
||||||
if (what != nullptr) {
|
if (what != nullptr) {
|
||||||
|
@ -190,10 +190,10 @@ private:
|
|||||||
~GCodeOutputStream() { this->close(); }
|
~GCodeOutputStream() { this->close(); }
|
||||||
|
|
||||||
bool is_open() const { return f; }
|
bool is_open() const { return f; }
|
||||||
bool is_error() const { return ::ferror(f); }
|
bool is_error() const;
|
||||||
|
|
||||||
void flush() { ::fflush(f); }
|
void flush();
|
||||||
void close() { if (f) ::fclose(f); }
|
void close();
|
||||||
|
|
||||||
// Write a string into a file.
|
// Write a string into a file.
|
||||||
void write(const std::string& what) { this->write(what.c_str()); }
|
void write(const std::string& what) { this->write(what.c_str()); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user