From 14e02978fcbbe9ec6ed3faa232fcb3f30664f40e Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Mon, 27 Jan 2014 16:51:35 -0800 Subject: KenLM 5cc905bc2d214efa7de2db56a9a672b749a95591 Avoid unspecified behavior of mmap when a file is resized reported by Christian Hardmeier Fixes for Mavericks and a workaround for Boost's broken semaphore Clean clang compile (of kenlm) Merged some of 744376b3fbebc41c4a270bf549826d5eb9219ae0 but also undid some of it because it was just masking a fundaemntal problem with pread rather than working around windows limitations --- lm/filter/vocab.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lm/filter/vocab.cc') diff --git a/lm/filter/vocab.cc b/lm/filter/vocab.cc index 7ed5d92fb..011ab5992 100644 --- a/lm/filter/vocab.cc +++ b/lm/filter/vocab.cc @@ -5,10 +5,6 @@ #include -#if !defined __MINGW32__ -#include -#endif - namespace lm { namespace vocab { @@ -34,7 +30,7 @@ bool IsLineEnd(std::istream &in) { }// namespace // Read space separated words in enter separated lines. These lines can be -// very long, so don't read an entire line at a time. +// very long, so don't read an entire line at a time. unsigned int ReadMultiple(std::istream &in, boost::unordered_map > &out) { in.exceptions(std::istream::badbit); unsigned int sentence = 0; -- cgit v1.2.3