mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
Trying to fix the windows build
This commit is contained in:
@@ -2642,6 +2642,10 @@ std::string GCode::extrude_support(const ExtrusionEntityCollection &support_fill
|
||||
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)
|
||||
{
|
||||
if (what != nullptr) {
|
||||
|
||||
@@ -190,10 +190,10 @@ private:
|
||||
~GCodeOutputStream() { this->close(); }
|
||||
|
||||
bool is_open() const { return f; }
|
||||
bool is_error() const { return ::ferror(f); }
|
||||
bool is_error() const;
|
||||
|
||||
void flush() { ::fflush(f); }
|
||||
void close() { if (f) ::fclose(f); }
|
||||
void flush();
|
||||
void close();
|
||||
|
||||
// Write a string into a file.
|
||||
void write(const std::string& what) { this->write(what.c_str()); }
|
||||
|
||||
Reference in New Issue
Block a user