X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d2ed20f7bbc531689ae3c22f02a8633bf1a9ebd..da0766ab2ae2357cd4dc111415731ee85aa45984:/include/wx/filefn.h diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 75313630d8..9fb223cde2 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -41,7 +41,7 @@ typedef _off_t off_t; #elif defined(__BORLANDC__) && defined(__WIN16__) typedef long off_t; -#elif defined(__SC__) +#elif defined(__SYMANTEC__) typedef long off_t; #elif defined(__MWERKS__) && !defined(__INTEL__) && !defined(__MACH__) typedef long off_t; @@ -78,6 +78,9 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString; || ( defined(__MINGW32__) && !defined(__WINE__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \ || ( defined(__MWERKS__) && defined(__WXMSW__) ) // functions +#ifdef __BORLANDC__ + #define _tell tell +#endif #define wxClose _close #define wxRead _read #define wxWrite _write @@ -90,6 +93,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString; #if wxUSE_UNICODE #if wxUSE_UNICODE_MSLU #define wxOpen wxMSLU__wopen + #define wxAccess wxMSLU__waccess #define wxMkDir wxMSLU__wmkdir #define wxRmDir wxMSLU__wrmdir @@ -102,7 +106,11 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString; #define wxStat _wstat #endif #else // !wxUSE_UNICODE +#ifdef __BORLANDC__ + #define wxOpen open +#else #define wxOpen _open +#endif #define wxAccess _access #define wxMkDir _mkdir #define wxRmDir _rmdir @@ -113,14 +121,16 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString; #define wxStructStat struct _stat // constants (unless already defined by the user code) - #ifndef O_RDONLY + #if !defined(O_RDONLY) && !defined(__BORLANDC__) #define O_RDONLY _O_RDONLY #define O_WRONLY _O_WRONLY #define O_RDWR _O_RDWR #define O_EXCL _O_EXCL #define O_CREAT _O_CREAT #define O_BINARY _O_BINARY + #endif + #ifndef __BORLANDC__ #define S_IFMT _S_IFMT #define S_IFDIR _S_IFDIR #define S_IFREG _S_IFREG