diff --git a/fdistream.cpp b/fdistream.cpp index 32848de..33c85f9 100644 --- a/fdistream.cpp +++ b/fdistream.cpp @@ -9,14 +9,17 @@ #include "libscio.hpp" #ifdef _MSC_VER -#include + #include #else -#include + #include #endif using namespace sc::io; std::streambuf::int_type fdinbuf::uflow() { + if (_ch == EOF) { + return underflow(); + } return _ch; }