Patches for VMS7.x
Modified Files:
wxWindows/src/common/filefn.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4484
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxRmdir(const wxString& dir, int WXUNUSED(flags))
{
#ifdef __VMS__
bool wxRmdir(const wxString& dir, int WXUNUSED(flags))
{
#ifdef __VMS__
+ return FALSE; //to be changed since rmdir exists in VMS7.x
#elif defined( __WXMAC__ )
return (rmdir(wxUnix2MacFilename( dir )) == 0);
#else
#elif defined( __WXMAC__ )
return (rmdir(wxUnix2MacFilename( dir )) == 0);
#else
bool wxDirExists(const wxString& dir)
{
#ifdef __VMS__
bool wxDirExists(const wxString& dir)
{
#ifdef __VMS__
+ return FALSE; //To be changed since stat exists in VMS7.x
#elif !defined(__WXMSW__)
struct stat sbuf;
return (stat(dir.fn_str(), &sbuf) != -1) && S_ISDIR(sbuf.st_mode) ? TRUE : FALSE;
#elif !defined(__WXMSW__)
struct stat sbuf;
return (stat(dir.fn_str(), &sbuf) != -1) && S_ISDIR(sbuf.st_mode) ? TRUE : FALSE;
// Get first file name matching given wild card.
// Flags are reserved for future use.
// Get first file name matching given wild card.
// Flags are reserved for future use.
+#if !defined( __VMS__ ) || ( __VMS_VER >= 70000000 )
static DIR *gs_dirStream = (DIR *) NULL;
static wxString gs_strFileSpec;
static int gs_findFlags = 0;
static DIR *gs_dirStream = (DIR *) NULL;
static wxString gs_strFileSpec;
static int gs_findFlags = 0;
+#if !defined( __VMS__ ) || ( __VMS_VER >= 70000000 )
if (gs_dirStream)
closedir(gs_dirStream); // edz 941103: better housekeping
if (gs_dirStream)
closedir(gs_dirStream); // edz 941103: better housekeping
{
result = wxFindNextFile();
}
{
result = wxFindNextFile();
}
+#endif // !VMS6.x or earlier
+#if !defined( __VMS__ ) || ( __VMS_VER >= 70000000 )
wxCHECK_MSG( gs_dirStream, result, wxT("must call wxFindFirstFile first") );
// Find path only so we can concatenate
wxCHECK_MSG( gs_dirStream, result, wxT("must call wxFindFirstFile first") );
// Find path only so we can concatenate
closedir(gs_dirStream);
gs_dirStream = (DIR *) NULL;
closedir(gs_dirStream);
gs_dirStream = (DIR *) NULL;
+#endif // !VMS6.2 or earlier