Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTetsuo Kiso <tetsuo-s@is.naist.jp>2012-03-20 19:18:44 +0400
committerTetsuo Kiso <tetsuo-s@is.naist.jp>2012-03-20 19:18:44 +0400
commitae60572123e22fe56db0af0d6ce45cd54f3d2357 (patch)
treec96c7b16cdf7bfc59460144bbe971a52d28f0b4a /mert/GzFileBuf.cpp
parent6540c4d8ac51d7daa983ce153a8ffed50bef14c5 (diff)
Fix a compile error I missed when developing on OS X.
Diffstat (limited to 'mert/GzFileBuf.cpp')
-rw-r--r--mert/GzFileBuf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mert/GzFileBuf.cpp b/mert/GzFileBuf.cpp
index 94a7136e8..9d3ccb588 100644
--- a/mert/GzFileBuf.cpp
+++ b/mert/GzFileBuf.cpp
@@ -2,6 +2,7 @@
#include <cstring>
#include <cstdlib>
+#include <cstdio>
#include <iostream>
GzFileBuf::GzFileBuf(const char* filename) {
@@ -50,7 +51,7 @@ int GzFileBuf::underflow() {
kBufSize - sizeof(int));
if (num <= 0) {
// ERROR or EOF
- return EOF;
+ return EOF; // NOTE: the macro EOF defined in stdio.h
}
// reset m_buf pointers