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