Fix compilation of MinGW-w64 4.7

Change-Id: Ieab538a077351549727c94dad17d4d77ab492a97
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
Yuchen Deng
2012-08-17 21:47:00 +08:00
committed by Oswald Buddenhagen
parent b9d15f1296
commit 540c4b19f6

View File

@@ -88,7 +88,7 @@ bool SaveFile::commit()
return false;
}
#ifdef Q_OS_WIN
FlushFileBuffers(handle());
FlushFileBuffers(reinterpret_cast<HANDLE>(handle()));
#else
fdatasync(handle());
#endif