summaryrefslogtreecommitdiff
path: root/setup/execute.c
diff options
context:
space:
mode:
authorSimon Howard2009-06-07 15:21:41 +0000
committerSimon Howard2009-06-07 15:21:41 +0000
commit1a54277adf6413026ccd77435601bcb50f1aa169 (patch)
treea5d360825532a83d9059518eb1d00ec715104b46 /setup/execute.c
parentfdfff2b9e72c8a1d3975277cad80b9d3afec032f (diff)
downloadchocolate-doom-1a54277adf6413026ccd77435601bcb50f1aa169.tar.gz
chocolate-doom-1a54277adf6413026ccd77435601bcb50f1aa169.tar.bz2
chocolate-doom-1a54277adf6413026ccd77435601bcb50f1aa169.zip
Fix setup tool compile on Windows CE.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1567
Diffstat (limited to 'setup/execute.c')
-rw-r--r--setup/execute.c27
1 files changed, 22 insertions, 5 deletions
diff --git a/setup/execute.c b/setup/execute.c
index b5b8a7c6..8f082de7 100644
--- a/setup/execute.c
+++ b/setup/execute.c
@@ -28,11 +28,19 @@
#include <sys/types.h>
-#ifndef _WIN32
- #include <sys/wait.h>
- #include <unistd.h>
+#if defined(_WIN32_WCE)
+
+#include "libc_wince.h"
+
+#elif defined(_WIN32)
+
+#include <sys/wait.h>
+#include <unistd.h>
+
#else
- #include <process.h>
+
+#include <process.h>
+
#endif
#include "textscreen.h"
@@ -139,7 +147,16 @@ void AddCmdLineParameter(execute_context_t *context, char *s, ...)
fprintf(context->stream, "\n");
}
-#ifdef _WIN32
+#if defined(_WIN32_WCE)
+
+static int ExecuteCommand(const char **argv)
+{
+ // Windows CE version.
+ // TODO
+ return 0;
+}
+
+#elif defined(_WIN32)
static int ExecuteCommand(const char **argv)
{