#include "wx/msw/private.h"
#endif
-#if !defined __UNIX__ && !defined __DJGPP__
- #ifdef __WXWINCE__
- typedef int ssize_t;
- #else
- typedef ptrdiff_t ssize_t;
- #endif
-#endif
-wxCOMPILE_TIME_ASSERT(sizeof(ssize_t) == sizeof(size_t), ssize_t_wrong_size);
// ============================================================================
// implementation of wxFile
// ----------------------------------------------------------------------------
// read
-size_t wxFile::Read(void *pBuf, size_t nCount)
+ssize_t wxFile::Read(void *pBuf, size_t nCount)
{
wxCHECK( (pBuf != NULL) && IsOpened(), 0 );
if ( iRc == -1 )
{
wxLogSysError(_("can't read from file descriptor %d"), m_fd);
- return (size_t)wxInvalidOffset;
+ return wxInvalidOffset;
}
return iRc;