mirror of
https://github.com/leozide/leocad.git
synced 2026-07-27 19:56:49 +00:00
Fixed Windows build.
This commit is contained in:
+1
-1
@@ -212,7 +212,7 @@ void lcDiskFile::SetLength(size_t NewLength)
|
||||
size_t lcDiskFile::GetLength() const
|
||||
{
|
||||
struct stat st;
|
||||
if (fstat(fileno(mFile), &st) < 0 || !S_ISREG(st.st_mode))
|
||||
if (fstat(fileno(mFile), &st) < 0 || (st.st_mode & S_IFMT) == S_IFREG)
|
||||
return 0;
|
||||
|
||||
return st.st_size;
|
||||
|
||||
Reference in New Issue
Block a user