Some OS/2 specific improvements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -301,7 +301,12 @@ wxFileExists (const wxString& filename)
|
|||||||
#else // !__WIN32__
|
#else // !__WIN32__
|
||||||
wxStructStat st;
|
wxStructStat st;
|
||||||
#ifndef wxNEED_WX_UNISTD_H
|
#ifndef wxNEED_WX_UNISTD_H
|
||||||
return wxStat( filename.fn_str() , &st) == 0 && (st.st_mode & S_IFREG);
|
return (wxStat( filename.fn_str() , &st) == 0 && (st.st_mode & S_IFREG))
|
||||||
|
#ifdef __OS2__
|
||||||
|
|| (errno == EACCES) // if access is denied something with that name
|
||||||
|
// exists and is opened in exclusive mode.
|
||||||
|
#endif
|
||||||
|
;
|
||||||
#else
|
#else
|
||||||
return wxStat( filename , &st) == 0 && (st.st_mode & S_IFREG);
|
return wxStat( filename , &st) == 0 && (st.st_mode & S_IFREG);
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1989,7 +1989,7 @@ bool wxFileName::GetTimes(wxDateTime *dtAccess,
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#elif defined(__UNIX_LIKE__) || defined(__WXMAC__) || (defined(__DOS__) && defined(__WATCOMC__))
|
#elif defined(__UNIX_LIKE__) || defined(__WXMAC__) || defined(__OS2__) || (defined(__DOS__) && defined(__WATCOMC__))
|
||||||
wxStructStat stBuf;
|
wxStructStat stBuf;
|
||||||
if ( wxStat( GetFullPath().c_str(), &stBuf) == 0 )
|
if ( wxStat( GetFullPath().c_str(), &stBuf) == 0 )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user