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:
Vadim Zeitlin
2000-07-07 19:45:13 +00:00
parent 765814e38e
commit df5361af0f
2 changed files with 2 additions and 1 deletions

View File

@@ -107,6 +107,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString;
#define O_CREAT _O_CREAT #define O_CREAT _O_CREAT
#define O_BINARY _O_BINARY #define O_BINARY _O_BINARY
#define S_IFMT _S_IFMT
#define S_IFDIR _S_IFDIR #define S_IFDIR _S_IFDIR
#define S_IFREG _S_IFREG #define S_IFREG _S_IFREG
#endif // O_RDONLY #endif // O_RDONLY

View File

@@ -1169,7 +1169,7 @@ bool wxPathExists(const wxChar *pszPathName)
wxStructStat st; wxStructStat st;
return wxStat(wxFNSTRINGCAST strPath.fn_str(), &st) == 0 && 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. // Get a temporary filename, opening and closing the file.