summaryrefslogtreecommitdiff
path: root/src/lib/cross.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-05 18:06:12 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-05 18:06:12 +0000
commitedafebffa42b9bc57408cc9540a7c15e4e4cab63 (patch)
tree1b170a86427b9671fc45e4a1317d5fd944eec674 /src/lib/cross.cc
parent8c23bbd8e6adcc83bd0d530aedf96df83302f878 (diff)
Use _fseeki64 on Windows when handling content files.
Diffstat (limited to 'src/lib/cross.cc')
-rw-r--r--src/lib/cross.cc10
1 files changed, 10 insertions, 0 deletions
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
+}