X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06e66bd0ca17d271f7b30e1476695f3f37ee2fb0..c3627a004d0333ec7bfc88e2a397d7d7f9752ea9:/include/wx/filefn.h diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 2ad2b9680a..69e95031d4 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -107,7 +107,7 @@ #endif #endif -#if defined(__VISUALC__) || ( defined(__MWERKS__) && defined( __INTEL__) ) +#if (defined(__VISUALC__) && !defined(__WXWINCE__)) || ( defined(__MWERKS__) && defined( __INTEL__) ) typedef _off_t off_t; #elif defined(__SYMANTEC__) typedef long off_t; @@ -129,7 +129,7 @@ enum wxSeekMode // Wrappers around Win32 api functions like CreateFile, ReadFile and such // Implemented in filefnwce.cpp -#if defined( __WINCE__) +#if defined( __WXWINCE__) typedef __int64 wxFileOffset; #define wxFileOffsetFmtSpec _("I64") int wxOpen(const wxChar *filename, int oflag, int WXUNUSED(pmode)); @@ -210,7 +210,7 @@ enum wxSeekMode #define wxWrite _write(fd, (const char *)buf, nCount) #endif #else - #ifdef __DMC__ + #if defined(__DMC__) || defined(__WATCOMC__) #define wxRead ::read #define wxWrite ::write #else @@ -228,7 +228,11 @@ enum wxSeekMode #define wxTell _tell #endif #define wxFsync _commit - #define wxEof _eof + #if defined(__WATCOMC__) + #define wxEof ::eof + #else + #define wxEof _eof + #endif #if wxUSE_UNICODE #if wxUSE_UNICODE_MSLU