DISK: Allow building with g++ on Windows with MinGW
This commit is contained in:
parent
89f8aff2cf
commit
e8ce83073f
1 changed files with 2 additions and 1 deletions
|
@ -1817,11 +1817,12 @@ static void sim_os_disk_flush_raw (FILE *f)
|
|||
FlushFileBuffers ((HANDLE)f);
|
||||
}
|
||||
|
||||
extern WINBASEAPI BOOL WINAPI GetFileSizeEx(HANDLE hFile, PLARGE_INTEGER lpFileSize);
|
||||
|
||||
static t_offset sim_os_disk_size_raw (FILE *Disk)
|
||||
{
|
||||
DWORD IoctlReturnSize;
|
||||
LARGE_INTEGER Size;
|
||||
WINBASEAPI BOOL WINAPI GetFileSizeEx(HANDLE hFile, PLARGE_INTEGER lpFileSize);
|
||||
|
||||
if (GetFileSizeEx((HANDLE)Disk, &Size))
|
||||
return (t_offset)(Size.QuadPart);
|
||||
|
|
Loading…
Add table
Reference in a new issue