From edafebffa42b9bc57408cc9540a7c15e4e4cab63 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 5 Jan 2014 18:06:12 +0000 Subject: Use _fseeki64 on Windows when handling content files. --- src/lib/cross.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/lib/cross.cc') diff --git a/src/lib/cross.cc b/src/lib/cross.cc index 746b4f509..57b3f93b2 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -288,3 +288,13 @@ fopen_boost (boost::filesystem::path p, string t) return fopen (p.c_str(), t.c_str ()); #endif } + +int +dcpomatic_fseek (FILE* stream, int64_t offset, int whence) +{ +#ifdef DCPOMATIC_WINDOWS + return _fseeki64 (stream, offset, whence); +#else + return fseek (stream, offset, whence); +#endif +} -- cgit v1.2.3