Doc updates (debug stuff); Cygwin corrections

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-11-21 15:40:35 +00:00
parent 25331334d4
commit 6b037754f5
18 changed files with 168 additions and 145 deletions

View File

@@ -55,12 +55,6 @@
#ifdef __GNUWIN32__
#include <sys/unistd.h>
// #include <sys/stat.h>
#ifndef __MINGW32__
#include <std.h>
#endif
#define stricmp strcasecmp
#endif
@@ -214,11 +208,18 @@ wxString wxPathList::FindAbsoluteValidPath (const wxString& file)
bool
wxFileExists (const wxString& filename)
{
#ifdef __GNUWIN32__ // (fix a B20 bug)
if (GetFileAttributes(filename) == 0xFFFFFFFF)
return FALSE;
else
return TRUE;
#else
struct stat stbuf;
if (filename && stat ((char *)(const char *)filename, &stbuf) == 0)
return TRUE;
return FALSE;
#endif
}
/* Vadim's alternative implementation