From 765814e38ee0fde815abdd7ba7fb85cf51b1ea03 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 7 Jul 2000 10:07:10 +0000 Subject: [PATCH] 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 --- src/common/filefn.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 308c2f5246..6363e17663 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -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.