Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2021-09-07 18:25:53 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2021-09-07 18:31:36 +0300
commit152e236ddad9170ac22afb7a82db455c357f66b8 (patch)
tree19e96c4bd9ab32f703f52f323bad4afb4792dfe8 /src/libslic3r
parenteb2debc2c6f212dfe3bed71f0a072bd674a20e5b (diff)
Trying to fix the windows build
Diffstat (limited to 'src/libslic3r')
-rw-r--r--src/libslic3r/GCode.cpp4
-rw-r--r--src/libslic3r/GCode.hpp6
2 files changed, 7 insertions, 3 deletions
diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp
index 54815188e..ff0076880 100644
--- a/src/libslic3r/GCode.cpp
+++ b/src/libslic3r/GCode.cpp
@@ -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) {
diff --git a/src/libslic3r/GCode.hpp b/src/libslic3r/GCode.hpp
index 06900410a..89e4570a9 100644
--- a/src/libslic3r/GCode.hpp
+++ b/src/libslic3r/GCode.hpp
@@ -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()); }