- #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,
- struct wxPOSIX_IDENT(stat) *buffer);
- WXDLLIMPEXP_BASE int
- wxMSLU__wstati64(const wxChar *name,
- struct wxPOSIX_IDENT(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__
- #define wxOpen _wopen
- #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)
+
+ // first the ANSI versions
+ #define wxCRT_OpenA wxPOSIX_IDENT(open)
+ #define wxCRT_AccessA wxPOSIX_IDENT(access)
+ #define wxCRT_MkDirA wxPOSIX_IDENT(mkdir)
+ #define wxCRT_RmDirA wxPOSIX_IDENT(rmdir)
+ #ifdef wxHAS_HUGE_FILES
+ #define wxCRT_StatA wxPOSIX_IDENT(stati64)
+ #else
+ // Unfortunately Watcom is not consistent
+ #if defined(__OS2__) && defined(__WATCOMC__)
+ #define wxCRT_StatA _stat