compilation fix for S_ISDIR and VC++
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -107,6 +107,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString;
|
||||
#define O_CREAT _O_CREAT
|
||||
#define O_BINARY _O_BINARY
|
||||
|
||||
#define S_IFMT _S_IFMT
|
||||
#define S_IFDIR _S_IFDIR
|
||||
#define S_IFREG _S_IFREG
|
||||
#endif // O_RDONLY
|
||||
|
@@ -1169,7 +1169,7 @@ bool wxPathExists(const wxChar *pszPathName)
|
||||
wxStructStat st;
|
||||
|
||||
return wxStat(wxFNSTRINGCAST strPath.fn_str(), &st) == 0 &&
|
||||
S_ISDIR(st.st_mode);
|
||||
((st.st_mode & S_IFMT) == S_IFDIR);
|
||||
}
|
||||
|
||||
// Get a temporary filename, opening and closing the file.
|
||||
|
Reference in New Issue
Block a user