- #if wxUSE_UNICODE
- #if wxUSE_UNICODE_MSLU
- // implement the missing file functions in Win9x ourselves
- #if defined( __VISUALC__ ) \
- || ( defined(__MINGW32__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
- || ( defined(__MWERKS__) && defined(__WXMSW__) ) \
- || ( defined(__BORLANDC__) && (__BORLANDC__ > 0x460) ) \
- || defined(__DMC__)
-
- WXDLLIMPEXP_BASE int wxMSLU__wopen(const wxChar *name,
- int flags, int mode);
- WXDLLIMPEXP_BASE int wxMSLU__waccess(const wxChar *name,
- int mode);
- WXDLLIMPEXP_BASE int wxMSLU__wmkdir(const wxChar *name);
- WXDLLIMPEXP_BASE int wxMSLU__wrmdir(const wxChar *name);
-
- WXDLLIMPEXP_BASE int
- wxMSLU__wstat(const wxChar *name, wxPOSIX_STRUCT(stat) *buffer);
- WXDLLIMPEXP_BASE int
- wxMSLU__wstati64(const wxChar *name,
- wxPOSIX_STRUCT(stati64) *buffer);
- #endif // Windows compilers with MSLU support
-
- #define wxOpen wxMSLU__wopen
-
- #define wxAccess wxMSLU__waccess
- #define wxMkDir wxMSLU__wmkdir
- #define wxRmDir wxMSLU__wrmdir
- #ifdef wxHAS_HUGE_FILES
- #define wxStat wxMSLU__wstati64
- #else
- #define wxStat wxMSLU__wstat
- #endif
- #else // !wxUSE_UNICODE_MSLU
- #ifdef __BORLANDC__
- #if __BORLANDC__ >= 0x550 && __BORLANDC__ <= 0x551
- WXDLLIMPEXP_BASE int wxOpen(const wxChar *pathname,
- int flags, mode_t mode);
- #else
- #define wxOpen _wopen
- #endif
- #define wxAccess _waccess
- #define wxMkDir _mkdir
- #define wxRmDir _rmdir
- #ifdef wxHAS_HUGE_FILES
- #define wxStat _wstati64
- #else
- #define wxStat _wstat
- #endif
- #else
- #define wxOpen _wopen
- #define wxAccess _waccess
- #define wxMkDir _wmkdir
- #define wxRmDir _wrmdir
- #ifdef wxHAS_HUGE_FILES
- #define wxStat _wstati64
- #else
- #define wxStat _wstat
- #endif
- #endif
- #endif // wxUSE_UNICODE_MSLU/!wxUSE_UNICODE_MSLU
- #else // !wxUSE_UNICODE
- #define wxOpen wxPOSIX_IDENT(open)
- #define wxAccess wxPOSIX_IDENT(access)
- #define wxMkDir wxPOSIX_IDENT(mkdir)
- #define wxRmDir wxPOSIX_IDENT(rmdir)
- #ifdef wxHAS_HUGE_FILES
- #define wxStat wxPOSIX_IDENT(stati64)
- #else
- #define wxStat wxPOSIX_IDENT(stat)
- #endif
- #endif // wxUSE_UNICODE/!wxUSE_UNICODE