Windows build fixes.

This commit is contained in:
Adam Ierymenko 2014-01-17 17:09:59 -08:00
parent 7eccc5ebf2
commit 07f505971c
15 changed files with 53 additions and 26 deletions

View file

@ -280,8 +280,12 @@ int64_t Utils::getFileSize(const char *path)
struct stat s;
if (stat(path,&s))
return -1;
#ifdef __WINDOWS__
return s.st_size;
#else
if (S_ISREG(s.st_mode))
return s.st_size;
#endif
return -1;
}