From 966d1e35e98e07afa7eab44249264a9e44053032 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Mon, 22 Jul 2013 10:44:31 +0100 Subject: [PATCH] Update helpers.cpp Switched file streams to those that can open non-ANSI file paths (the header file "streams.h" has not yet been committed). --- src/backend/helpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/helpers.cpp b/src/backend/helpers.cpp index 46a9d77e..2abfd939 100644 --- a/src/backend/helpers.cpp +++ b/src/backend/helpers.cpp @@ -27,6 +27,7 @@ #include "helpers.h" #include "error.h" +#include "streams.h" #include #include @@ -37,7 +38,6 @@ #include #include -#include #include #include #include @@ -125,7 +125,7 @@ namespace boss { uint32_t chksum = 0; static const size_t buffer_size = 8192; char buffer[buffer_size]; - ifstream ifile(filename.string().c_str(), ios::binary); + boss::ifstream ifile(filename.string().c_str(), ios::binary); // LOG_TRACE("calculating CRC for: '%s'", filename.string().c_str()); boost::crc_32_type result; if (ifile) {