]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/utilsexc.cpp
file I forgot to commit last time (wxCritSection)
[wxWidgets.git] / src / msw / utilsexc.cpp
index cfd23a7f25af9625ca0dcd97c48cbb856d32ec29..4140571003f559d7529eb616dfad6cf3ab4ebb02 100644 (file)
 
 #ifndef __GNUWIN32__
 #include <direct.h>
+#ifndef __MWERKS__
 #include <dos.h>
 #endif
+#endif
 
 #ifdef __GNUWIN32__
 #include <sys/unistd.h>
 #include <sys/stat.h>
-#ifndef __MINGW32__
-#include <std.h>
-#endif
-
 #endif
 
 #ifdef __WIN32__
@@ -203,3 +201,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);
+}