use (POSIX) S_ISDIR instead of (not POSIX) S_IFDIR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1168,7 +1168,8 @@ bool wxPathExists(const wxChar *pszPathName)
|
||||
|
||||
wxStructStat st;
|
||||
|
||||
return wxStat(wxFNSTRINGCAST strPath.fn_str(), &st) == 0 && (st.st_mode & S_IFDIR);
|
||||
return wxStat(wxFNSTRINGCAST strPath.fn_str(), &st) == 0 &&
|
||||
S_ISDIR(st.st_mode);
|
||||
}
|
||||
|
||||
// Get a temporary filename, opening and closing the file.
|
||||
|
||||
Reference in New Issue
Block a user