fixed bug where read would not be called
This commit is contained in:
@ -9,14 +9,17 @@
|
||||
#include "libscio.hpp"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <io.h>
|
||||
#include <io.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
using namespace sc::io;
|
||||
|
||||
std::streambuf::int_type fdinbuf::uflow() {
|
||||
if (_ch == EOF) {
|
||||
return underflow();
|
||||
}
|
||||
return _ch;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user