Use correct file handle structure on osx

This commit is contained in:
Simon Detheridge 2015-01-14 09:48:16 +00:00
parent 5ec065a66b
commit 958a4786ab

View File

@ -178,7 +178,7 @@ static bool ReadFile(const char* filename, string& buf, bool nullTerminate = tru
{
struct _stat statBuf;
#ifdef _WIN32
#if defined(_WIN32) || defined(__APPLE__)
int statResult = _fstat(f->_file, &statBuf);//Get data associated with file.
#else
int statResult = _fstat(f->_fileno, &statBuf);//Get data associated with file.