summaryrefslogtreecommitdiff
path: root/src/asset.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/asset.cc')
-rw-r--r--src/asset.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/asset.cc b/src/asset.cc
index de299d34..92b235d8 100644
--- a/src/asset.cc
+++ b/src/asset.cc
@@ -122,9 +122,14 @@ Asset::equals (shared_ptr<const Asset> other, EqualityFlags flags) const
notes.push_back (mxf_path().string() + " and " + other->mxf_path().string() + " sizes differ");
return notes;
}
-
+
+#if BOOST_FILESYSTEM_VERSION == 3
ifstream a (mxf_path().c_str(), ios::binary);
ifstream b (other->mxf_path().c_str(), ios::binary);
+#else
+ ifstream a (mxf_path().string().c_str(), ios::binary);
+ ifstream b (other->mxf_path().string().c_str(), ios::binary);
+#endif
int buffer_size = 65536;
char abuffer[buffer_size];