removed a constant not defined for VA in filefn and once again removed #warning not supported by VisualAge

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2000-07-20 04:07:51 +00:00
parent 0afe3164b4
commit 53b9834d36
2 changed files with 9 additions and 2 deletions

View File

@@ -1176,9 +1176,15 @@ bool wxPathExists(const wxChar *pszPathName)
#endif // __WINDOWS__ #endif // __WINDOWS__
wxStructStat st; wxStructStat st;
#ifndef __VISAGECPP__
return wxStat(wxFNSTRINGCAST strPath.fn_str(), &st) == 0 && return wxStat(wxFNSTRINGCAST strPath.fn_str(), &st) == 0 &&
((st.st_mode & S_IFMT) == S_IFDIR); ((st.st_mode & S_IFMT) == S_IFDIR);
#else
// S_IFMT not supported in VA compilers.. st_mode is a 2byte value only
return wxStat(wxFNSTRINGCAST strPath.fn_str(), &st) == 0 &&
(st.st_mode == S_IFDIR);
#endif
} }
// Get a temporary filename, opening and closing the file. // Get a temporary filename, opening and closing the file.

View File

@@ -283,7 +283,8 @@ wxLongLong wxGetLocalTimeMillis()
// If your platform/compiler needs to use two different functions // If your platform/compiler needs to use two different functions
// to get ms resolution, please do NOT just shut off these warnings, // to get ms resolution, please do NOT just shut off these warnings,
// drop me a line instead at <guille@iies.es> // drop me a line instead at <guille@iies.es>
#warning "Possible clock skew bug in wxGetLocalTimeMillis()!" // Visualage does not support #warning
// #warning "Possible clock skew bug in wxGetLocalTimeMillis()!"
DATETIME dt; DATETIME dt;
::DosGetDateTime(&dt); ::DosGetDateTime(&dt);