Fix for platforms where 64-bit value support is not implemented in switch/case statements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -449,20 +449,14 @@ bool wxFile::Eof() const
|
|||||||
iRc = wxEof(m_fd);
|
iRc = wxEof(m_fd);
|
||||||
#endif // Windows/Unix
|
#endif // Windows/Unix
|
||||||
|
|
||||||
switch ( iRc ) {
|
if ( iRc == 1)
|
||||||
case 1:
|
{}
|
||||||
break;
|
else if ( iRc == 0 )
|
||||||
|
|
||||||
case 0:
|
|
||||||
return false;
|
return false;
|
||||||
|
else if ( iRc == wxInvalidOffset )
|
||||||
case wxInvalidOffset:
|
|
||||||
wxLogSysError(_("can't determine if the end of file is reached on descriptor %d"), m_fd);
|
wxLogSysError(_("can't determine if the end of file is reached on descriptor %d"), m_fd);
|
||||||
break;
|
else
|
||||||
|
|
||||||
default:
|
|
||||||
wxFAIL_MSG(_("invalid eof() return value."));
|
wxFAIL_MSG(_("invalid eof() return value."));
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user