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:
authorHieu Hoang <fishandfrolick@gmail.com>2012-02-24 04:04:08 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-02-24 04:04:08 +0400
commitde14bc2210a432d3f21412445666df7974434f91 (patch)
tree2420004653005b420ff1bd70f37b01c1aaaba1b5 /util/file_piece.hh
parent939ac15d0e0ef63a6c72d6779160abd7bad1e54e (diff)
zlib changes. More strongly type gzFile variables. HAVE_ZLIB prob no longer works
Diffstat (limited to 'util/file_piece.hh')
-rw-r--r--util/file_piece.hh8
1 files changed, 6 insertions, 2 deletions
diff --git a/util/file_piece.hh b/util/file_piece.hh
index b81ac0e20..2e4a91bbd 100644
--- a/util/file_piece.hh
+++ b/util/file_piece.hh
@@ -13,6 +13,10 @@
#include <stdint.h>
+#ifdef HAVE_ZLIB
+#include <zlib.h>
+#endif
+
namespace util {
class ParseNumberException : public Exception {
@@ -23,7 +27,7 @@ class ParseNumberException : public Exception {
class GZException : public Exception {
public:
- explicit GZException(void *file);
+ explicit GZException(gzFile file);
GZException() throw() {}
~GZException() throw() {}
};
@@ -117,7 +121,7 @@ class FilePiece {
std::string file_name_;
#ifdef HAVE_ZLIB
- void *gz_file_;
+ gzFile gz_file_;
#endif // HAVE_ZLIB
};