X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e64d4e1e572835accdca5cc58cbcaf8d3aa8359..89077ebcc8990c84d94a601b221210d3ff7a8ec7:/src/msw/utilsexc.cpp diff --git a/src/msw/utilsexc.cpp b/src/msw/utilsexc.cpp index cfd23a7f25..e74411c229 100644 --- a/src/msw/utilsexc.cpp +++ b/src/msw/utilsexc.cpp @@ -24,6 +24,7 @@ #include "wx/setup.h" #include "wx/utils.h" #include "wx/app.h" +#include "wx/intl.h" #endif #include "wx/log.h" @@ -32,18 +33,18 @@ #include -#ifndef __GNUWIN32__ +#if !defined(__GNUWIN32__) && !defined(__SALFORDC__) #include +#ifndef __MWERKS__ #include #endif +#endif #ifdef __GNUWIN32__ +#ifndef __TWIN32__ #include #include -#ifndef __MINGW32__ -#include #endif - #endif #ifdef __WIN32__ @@ -112,7 +113,7 @@ long wxExecute(const wxString& command, bool sync, wxProcess *handler) if (command == "") return 0; -#ifdef __WIN32__ +#if defined(__WIN32__) && !defined(__TWIN32__) char * cl; char * argp; int clen; @@ -203,3 +204,16 @@ long wxExecute(const wxString& command, bool sync, wxProcess *handler) return(instanceID); #endif } + +long wxExecute(char **argv, bool sync, wxProcess *handler) +{ + wxString command = ""; + + while (*argv != NULL) { + command += *argv; + command += ' '; + argv++; + } + command.RemoveLast(); + return wxExecute(command, sync, handler); +}