fixes for S_IFMT for OS/2 from WX_2_2_BRANCH
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a55e0ebc56
commit
71c97a89fa
@ -1176,9 +1176,15 @@ bool wxPathExists(const wxChar *pszPathName)
|
||||
#endif // __WINDOWS__
|
||||
|
||||
wxStructStat st;
|
||||
|
||||
#ifndef __VISAGECPP__
|
||||
return wxStat(wxFNSTRINGCAST strPath.fn_str(), &st) == 0 &&
|
||||
((st.st_mode & S_IFMT) == S_IFDIR);
|
||||
#else
|
||||
// S_IFMT not supported in VA compilers.. st_mode is a 2byte value only
|
||||
return wxStat(wxFNSTRINGCAST strPath.fn_str(), &st) == 0 &&
|
||||
(st.st_mode == S_IFDIR);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
// Get a temporary filename, opening and closing the file.
|
||||
|
Loading…
Reference in New Issue
Block a user