mirror of
https://github.com/simh/simh.git
synced 2026-02-27 01:00:07 +00:00
DISK: Fix MinGW build when compiling under g++
This commit is contained in:
11
sim_disk.c
11
sim_disk.c
@@ -1674,6 +1674,15 @@ errno = EINVAL;
|
||||
#else
|
||||
#include <winioctl.h>
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
WINBASEAPI BOOL WINAPI GetFileSizeEx(HANDLE hFile, PLARGE_INTEGER lpFileSize);
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
struct _device_type {
|
||||
int32 Type;
|
||||
const char *desc;
|
||||
@@ -1817,8 +1826,6 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user