Skip to content

Commit daabf09

Browse files
committed
macOS: use ftello instead of ftello64
1 parent 7da7ff5 commit daabf09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Shared/sdk/SharedUtil.File.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ uint64 SharedUtil::FileSize(const SString& strFilename)
186186
fseek(fh, 0, SEEK_END);
187187
#ifdef WIN32
188188
uint64 size = _ftelli64(fh);
189+
#elif defined(__APPLE__)
190+
uint64 size = ftello(fh);
189191
#else
190192
uint64 size = ftello64(fh);
191193
#endif

0 commit comments

Comments
 (0)