Remove unused functions from tool shim, add int64 file ops

This commit is contained in:
elasota
2024-08-06 23:49:32 -04:00
parent d750ffae65
commit a2fdfee02a
4 changed files with 22 additions and 70 deletions

View File

@@ -1,3 +1,4 @@
#define _FILE_OFFSET_BITS 64
#include "WindowsUnicodeToolShim.h"
#include <cstdio>
@@ -97,3 +98,13 @@ void ScanDirectoryForExtension
}
closedir(dir);
}
int fseek_int64(FILE *f, int64_t offset, int origin)
{
return fseeko(f, static_cast<off_t>(offset), origin);
}
int64_t ftell_int64(FILE *f)
{
return static_cast<int64_t>(ftello(f));
}