}
+int
+File::seek(int64_t offset, int whence)
+{
+ DCP_ASSERT(_file);
+#ifdef LIBDCP_WINDOWS
+ return fseeki64(_file, offset, whence);
+#else
+ return fseek(_file, offset, whence);
+#endif
+}
+
+
/** Windows can't "by default" cope with paths longer than 260 characters, so if you pass such a path to
* any boost::filesystem method it will fail. There is a "fix" for this, which is to prepend
* the string \\?\ to the path. This will make it work, so long as:
int eof();
/** fgets() wrapper */
char *gets(char *s, int size);
+ /** fseek/fseeki64 wrapper */
+ int seek(int64_t offset, int whence);
void checked_write(void const * ptr, size_t size);
void checked_read(void* ptr, size_t size);