summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.h26
-rw-r--r--gui.c4
-rw-r--r--main.c2
3 files changed, 11 insertions, 21 deletions
diff --git a/common.h b/common.h
index 4314caa..5e4be0d 100644
--- a/common.h
+++ b/common.h
@@ -23,7 +23,7 @@
#define ror(dest, value, shift) \
dest = ((value) >> shift) | ((value) << (32 - shift)) \
-#if defined(_WIN32) || defined(_WIN32_WCE)
+#if defined(_WIN32)
#define PATH_SEPARATOR "\\"
#define PATH_SEPARATOR_CHAR '\\'
#else
@@ -34,20 +34,16 @@
// These includes must be used before SDL is included.
#ifdef ARM_ARCH
-#ifdef _WIN32_WCE
- #include <windows.h>
-#else
- #define _BSD_SOURCE // sync
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <math.h>
- #include <fcntl.h>
- #include <unistd.h>
- #include <stdarg.h>
- #include <time.h>
- #include <sys/time.h>
-#endif /* _WIN32_WCE */
+#define _BSD_SOURCE // sync
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <math.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <stdarg.h>
+#include <time.h>
+#include <sys/time.h>
#endif /* ARM_ARCH */
diff --git a/gui.c b/gui.c
index 40b07e4..d97b0a2 100644
--- a/gui.c
+++ b/gui.c
@@ -19,15 +19,11 @@
#include "common.h"
#include "font.h"
-#ifndef _WIN32_WCE
-
#include <sys/stat.h>
#include <unistd.h>
#include <ctype.h>
#include <dirent.h>
-#endif
-
#define MAX_PATH 1024
// Blatantly stolen and trimmed from MZX (megazeux.sourceforge.net)
diff --git a/main.c b/main.c
index ee1e86d..b09f472 100644
--- a/main.c
+++ b/main.c
@@ -133,14 +133,12 @@ static const char *file_ext[] = { ".gba", ".bin", ".zip", NULL };
#ifndef PSP_BUILD
static void ChangeWorkingDirectory(char *exe)
{
-#ifndef _WIN32_WCE
char *s = strrchr(exe, '/');
if (s != NULL) {
*s = '\0';
chdir(exe);
*s = '/';
}
-#endif
}
static void switch_to_romdir(void)