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:
Vadim Zeitlin
2000-07-07 10:07:10 +00:00
parent 78067d6c40
commit 765814e38e

View File

@@ -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.