2 GnuWin32 compile bugs fixed, incl. printf bug in prntdlgg that sent GnuWin32

into an endless loop


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 1998-08-15 12:30:42 +00:00
parent 8d71b5552e
commit c856c750c0
2 changed files with 4 additions and 6 deletions

View File

@ -844,14 +844,12 @@ bool wxRemoveFile(const wxString& file)
bool wxMkdir(const wxString& dir)
{
#ifdef __VMS__
#if defined(__WXSTUBS__)
return FALSE;
#elif defined(__VMS__)
return FALSE;
#elif (defined(__GNUWIN32__) && !defined(__MINGW32__)) || !defined(__WXMSW__)
#if defined(__WIN32__) // Could happen in __WXSTUBS__ mode
return (mkdir(WXSTRINGCAST dir) == 0);
#else
return (mkdir (WXSTRINGCAST dir, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) == 0);
#endif
#else
return (mkdir(WXSTRINGCAST dir) == 0);
#endif