pc 2 mac conversion for file operations

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2003-07-04 19:52:34 +00:00
parent 22cf5eef64
commit 5e0d7b6bce
2 changed files with 45 additions and 0 deletions

View File

@@ -189,6 +189,25 @@ const off_t wxInvalidOffset = (off_t)-1;
// implementation
// ============================================================================
#if defined(__WXMAC__) && !defined(__DARWIN__)
WXDLLEXPORT int wxStat( const wxChar *file_name, wxStructStat *buf )
{
return stat( wxMacStringToCString( file_name ), buf );
}
WXDLLEXPORT int wxAccess( const wxChar *pathname, int mode )
{
return access( wxMacStringToCString( pathname ), mode );
}
WXDLLEXPORT int wxOpen( const wxChar *pathname, int flags, mode_t mode )
{
return open( wxMacStringToCString( pathname ), flags, mode );
}
#endif
#ifdef wxNEED_WX_UNISTD_H
WXDLLEXPORT int wxStat( const wxChar *file_name, wxStructStat *buf )