Various small fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-01-31 13:58:17 +00:00
parent 03ab016d66
commit 0a240683ed
25 changed files with 65 additions and 70 deletions

View File

@@ -324,7 +324,7 @@ size_t wxFile::Write(const void *pBuf, size_t nCount)
bool wxFile::Flush()
{
if ( IsOpened() ) {
#if defined(_MSC_VER) || wxHAVE_FSYNC
#if (defined(_MSC_VER) && !defined(__MWERKS__)) || wxHAVE_FSYNC
if ( fsync(m_fd) == -1 )
{
wxLogSysError(_("can't flush file descriptor %d"), m_fd);