Windows build fixes.
This commit is contained in:
parent
7eccc5ebf2
commit
07f505971c
15 changed files with 53 additions and 26 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue