for (size_t i = 0; i < _current_path; ++i) {
full_pos += boost::filesystem::file_size (_paths[i]);
}
+#ifdef DCPOMATIC_WINDOWS
+ full_pos += _ftelli64 (_current_file);
+#else
full_pos += ftell (_current_file);
+#endif
full_pos += pos;
break;
case SEEK_END:
}
ensure_open_path (i);
- fseek (_current_file, sub_pos, SEEK_SET);
+ dcpomatic_fseek (_current_file, sub_pos, SEEK_SET);
return full_pos;
}