OS X build fixes

This commit is contained in:
Jack Andersen
2016-01-23 13:36:58 -10:00
parent dc4dda0d5f
commit 5d5dfdc3da
4 changed files with 23 additions and 11 deletions

View File

@@ -66,7 +66,7 @@ public:
#endif
if (!fp)
LogModule.report(LogVisor::Error, _S("unable to open '%s' for writing"), path.c_str());
fseeko64(fp, offset, SEEK_SET);
FSeek(fp, offset, SEEK_SET);
}
~WriteStream()
{
@@ -125,7 +125,7 @@ public:
ReadStream(const SystemString& path, uint64_t offset)
: ReadStream(path)
{
fseeko64(fp, offset, SEEK_SET);
FSeek(fp, offset, SEEK_SET);
}
~ReadStream() {fclose(fp);}
uint64_t read(void* buf, uint64_t length)