mirror of https://github.com/mgba-emu/mgba.git
VFS: Fix Windows build
This commit is contained in:
parent
4b3df31e49
commit
f0c8c246cc
|
@ -173,5 +173,9 @@ static bool _vfdSync(struct VFile* vf, const void* buffer, size_t size) {
|
|||
UNUSED(buffer);
|
||||
UNUSED(size);
|
||||
struct VFileFD* vfd = (struct VFileFD*) vf;
|
||||
#ifndef _WIN32
|
||||
return fsync(vfd->fd) == 0;
|
||||
#else
|
||||
return FlushFileBuffers((HANDLE) _get_osfhandle(vfd->fd));
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue