Maximize chances to find an existing definition for O_BINARY and MAX_PATHLEN.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2006-10-31 23:29:02 +00:00
parent b21f4960b1
commit 7cbe148e2f

View File

@@ -99,20 +99,10 @@
}; };
#endif // W_OK #endif // W_OK
// 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__
#ifdef __SALFORDC__ #ifdef __SALFORDC__
#include <unix.h> #include <unix.h>
#endif #endif
#ifndef MAX_PATH
#define MAX_PATH 512
#endif
// some broken compilers don't have 3rd argument in open() and creat() // some broken compilers don't have 3rd argument in open() and creat()
#ifdef __SALFORDC__ #ifdef __SALFORDC__
#define ACCESS(access) #define ACCESS(access)
@@ -132,6 +122,12 @@
#include "wx/file.h" #include "wx/file.h"
#include "wx/filefn.h" #include "wx/filefn.h"
// 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__
#ifdef __WXMSW__ #ifdef __WXMSW__
#include "wx/msw/mslu.h" #include "wx/msw/mslu.h"
#endif #endif
@@ -140,6 +136,9 @@
#include "wx/msw/private.h" #include "wx/msw/private.h"
#endif #endif
#ifndef MAX_PATH
#define MAX_PATH 512
#endif
// ============================================================================ // ============================================================================
// implementation of wxFile // implementation of wxFile