From 53b9834d36aa06faf0b8a5152e154ce1091958d0 Mon Sep 17 00:00:00 2001 From: David Webster Date: Thu, 20 Jul 2000 04:07:51 +0000 Subject: [PATCH] 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 --- src/common/filefn.cpp | 8 +++++++- src/common/timercmn.cpp | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 50b3fad413..9c79a5d13a 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1176,9 +1176,15 @@ bool wxPathExists(const wxChar *pszPathName) #endif // __WINDOWS__ wxStructStat st; - +#ifndef __VISAGECPP__ return wxStat(wxFNSTRINGCAST strPath.fn_str(), &st) == 0 && ((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. diff --git a/src/common/timercmn.cpp b/src/common/timercmn.cpp index ecf4d66387..d20e479d0e 100644 --- a/src/common/timercmn.cpp +++ b/src/common/timercmn.cpp @@ -283,7 +283,8 @@ wxLongLong wxGetLocalTimeMillis() // If your platform/compiler needs to use two different functions // to get ms resolution, please do NOT just shut off these warnings, // drop me a line instead at - #warning "Possible clock skew bug in wxGetLocalTimeMillis()!" + // Visualage does not support #warning + // #warning "Possible clock skew bug in wxGetLocalTimeMillis()!" DATETIME dt; ::DosGetDateTime(&dt);