From: Václav Slavík Date: Wed, 5 Dec 2001 17:03:33 +0000 (+0000) Subject: DOS+Watcom fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f48fa475c2cedafdb4699e9f00eca61ba10c6953 DOS+Watcom fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 8346e0eae8..6c359eba15 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -77,6 +77,12 @@ #endif // __WINDOWS__ #endif // native Win compiler +#if defined(__DOS__) && defined(__WATCOMC__) + #include + #include + #include +#endif + #ifdef __GNUWIN32__ #include #ifndef __TWIN32__ @@ -1186,7 +1192,7 @@ bool wxMkdir(const wxString& dir, int perm) // assume mkdir() has 2 args on non Windows-OS/2 platforms and on Windows too // for the GNU compiler -#if (!(defined(__WXMSW__) || defined(__WXPM__))) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) || defined(__WXWINE__) || defined(__WXMICROWIN__) +#if (!(defined(__WXMSW__) || defined(__WXPM__) || defined(__DOS__))) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) || defined(__WXWINE__) || defined(__WXMICROWIN__) if ( mkdir(wxFNCONV(dirname), perm) != 0 ) #elif defined(__WXPM__) if (::DosCreateDir((PSZ)dirname, NULL) != 0) // enhance for EAB's?? @@ -1813,7 +1819,7 @@ wxString wxGetCwd() bool wxSetWorkingDirectory(const wxString& d) { -#if defined( __UNIX__ ) || defined( __WXMAC__ ) +#if defined(__UNIX__) || defined(__WXMAC__) || defined(__DOS__) return (chdir(wxFNSTRINGCAST d.fn_str()) == 0); #elif defined(__WXPM__) return (::DosSetCurrentDir((PSZ)d.c_str()) == 0);