From 99e58f7031a3e011b06527585feabc6694af2979 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 23 Jan 2013 21:58:19 +0100 Subject: [PATCH] Windows fix for ConfigCompiler::ReadInput. --- lib/config/configcompiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config/configcompiler.cpp b/lib/config/configcompiler.cpp index 29102788c..4f0f1dd70 100644 --- a/lib/config/configcompiler.cpp +++ b/lib/config/configcompiler.cpp @@ -55,7 +55,7 @@ ConfigCompiler::~ConfigCompiler(void) */ size_t ConfigCompiler::ReadInput(char *buffer, size_t max_size) { - m_Input->readsome(buffer, max_size); + m_Input->read(buffer, max_size); return static_cast(m_Input->gcount()); } @@ -122,7 +122,7 @@ void ConfigCompiler::HandleLibrary(const String& library) vector ConfigCompiler::CompileStream(const String& path, istream *stream) { - stream->exceptions(istream::failbit | istream::badbit); + stream->exceptions(istream::badbit); ConfigCompiler ctx(path, stream); ctx.Compile(); -- 2.40.0