Update Athena

This commit is contained in:
Jack Andersen 2016-02-03 14:55:13 -10:00
parent c9be1c079a
commit c5689c7366
2 changed files with 23 additions and 1 deletions

2
hecl/extern/Athena vendored

@ -1 +1 @@
Subproject commit 09033d90cca4d159fffda73ef12e08cc85aadec6 Subproject commit 8df75c8f23e32c38c7a9735fcc06538fbf412660

View File

@ -301,6 +301,28 @@ static inline FILE* Fopen(const SystemChar* path, const SystemChar* mode, FileLo
return fp; return fp;
} }
static inline int FSeek(FILE* fp, int64_t offset, int whence)
{
#if _WIN32
return _fseeki64(fp, offset, whence);
#elif __APPLE__ || __FreeBSD__
return fseeko(fp, offset, whence);
#else
return fseeko64(fp, offset, whence);
#endif
}
static inline int64_t FTell(FILE* fp)
{
#if _WIN32
return _ftelli64(fp);
#elif __APPLE__ || __FreeBSD__
return ftello(fp);
#else
return ftello64(fp);
#endif
}
static inline int Rename(const SystemChar* oldpath, const SystemChar* newpath) static inline int Rename(const SystemChar* oldpath, const SystemChar* newpath)
{ {
#if HECL_UCS2 #if HECL_UCS2