-#include <fcntl.h> // O_RDONLY &c
-
-#ifndef __MWERKS__
- #include <sys/types.h> // needed for stat
- #include <sys/stat.h> // stat
-#elif ( defined(__MWERKS__) && defined(__WXMSW__) )
- #include <sys/types.h> // needed for stat
- #include <sys/stat.h> // stat
-#endif
-
-#if defined(__BORLANDC__) || defined(_MSC_VER)
- #define W_OK 2
- #define R_OK 4
-#endif
-
-// there is no distinction between text and binary files under Unix, so define
-// O_BINARY as 0 if the system headers don't do it already
-#if defined(__UNIX__) && !defined(O_BINARY)
- #define O_BINARY (0)
-#endif //__UNIX__