diff options
Diffstat (limited to 'src/base/output.cc')
-rw-r--r-- | src/base/output.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/output.cc b/src/base/output.cc index 516a1d05a..c2a37e58e 100644 --- a/src/base/output.cc +++ b/src/base/output.cc @@ -40,7 +40,7 @@ #include <cstdlib> #include <fstream> -#include <gzstream.hh> +#include <zfstream.h> #include "base/misc.hh" #include "base/output.hh" @@ -82,7 +82,7 @@ OutputDirectory::openFile(const string &filename, bool gz = !no_gz; gz = gz && filename.find(".gz", filename.length()-3) < filename.length(); if (gz) { - ogzstream *file = new ogzstream(filename.c_str(), mode); + gzofstream *file = new gzofstream(filename.c_str(), mode); if (!file->is_open()) fatal("Cannot open file %s", filename); assert(files.find(filename) == files.end()); @@ -111,7 +111,7 @@ OutputDirectory::close(ostream *openStream) { delete i->second; break; } else { - ogzstream *gfs = dynamic_cast<ogzstream*>(i->second); + gzofstream *gfs = dynamic_cast<gzofstream*>(i->second); if (gfs) { gfs->close(); delete i->second; |