X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c9c44019068229a5f69f6b77bffff4008c2e208..c4e387521b7297a24e4aa016b588cf77d32d1b5f:/src/unix/utilsunx.cpp diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 1976a20601..70d467e744 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -253,7 +253,11 @@ long wxExecute( const wxString& command, int flags, wxProcess *process ) argv[argc] = NULL; // do execute the command +#if wxUSE_UNICODE + long lRc = -1; +#else long lRc = wxExecute(argv, flags, process); +#endif // clean up argc = 0; @@ -582,6 +586,9 @@ private: // ---------------------------------------------------------------------------- // wxExecute: the real worker function // ---------------------------------------------------------------------------- +#ifdef __VMS +#pragma message disable codeunreachable +#endif long wxExecute(wxChar **argv, int flags, @@ -844,7 +851,12 @@ long wxExecute(wxChar **argv, return exitcode; #endif // wxUSE_GUI } + + return ERROR_RETURN_CODE; } +#ifdef __VMS +#pragma message enable codeunreachable +#endif #undef ERROR_RETURN_CODE #undef ARGS_CLEANUP @@ -1097,9 +1109,9 @@ bool wxGetDiskSpace(const wxString& path, wxLongLong *pTotal, wxLongLong *pFree) #if defined(HAVE_STATFS) || defined(HAVE_STATVFS) // the case to "char *" is needed for AIX 4.3 wxStatFs fs; - if ( statfs((char *)path.fn_str(), &fs) != 0 ) + if ( statfs((char *)(const char*)path.fn_str(), &fs) != 0 ) { - wxLogSysError("Failed to get file system statistics"); + wxLogSysError( wxT("Failed to get file system statistics") ); return FALSE; }