(blind) fix for Metrowerks/Win32 compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-10-08 00:26:20 +00:00
parent 4ae9be50fd
commit eb84314b79

View File

@ -298,20 +298,22 @@ enum wxSeekMode
#endif #endif
// constants (unless already defined by the user code) // constants (unless already defined by the user code)
#if !defined(O_RDONLY) && !defined(__BORLANDC__) && !defined(__WATCOMC__)
#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
#if !defined(__BORLANDC__) && !defined(__WATCOMC__) #if !defined(__BORLANDC__) && !defined(__WATCOMC__)
#define S_IFMT _S_IFMT #ifndef O_RDONLY
#define S_IFDIR _S_IFDIR #define O_RDONLY _O_RDONLY
#define S_IFREG _S_IFREG #define O_WRONLY _O_WRONLY
#endif // O_RDONLY #define O_RDWR _O_RDWR
#define O_EXCL _O_EXCL
#define O_CREAT _O_CREAT
#define O_BINARY _O_BINARY
#endif
#ifndef S_IFMT
#define S_IFMT _S_IFMT
#define S_IFDIR _S_IFDIR
#define S_IFREG _S_IFREG
#endif
#endif
// It's a private define, undefine it so nobody gets tempted to use it // It's a private define, undefine it so nobody gets tempted to use it
#undef wxHAS_HUGE_FILES #undef wxHAS_HUGE_FILES