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;
|| ( 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
#if wxUSE_UNICODE
#if wxUSE_UNICODE_MSLU
#define wxOpen wxMSLU__wopen
+
#define wxAccess wxMSLU__waccess
#define wxMkDir wxMSLU__wmkdir
#define wxRmDir wxMSLU__wrmdir
#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
#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