diff options
author | twinaphex | 2014-07-14 04:54:52 +0200 |
---|---|---|
committer | twinaphex | 2014-07-14 04:54:52 +0200 |
commit | 3af92d87a1a47c1291b5e04f1d12f84066ec248e (patch) | |
tree | 2b74ba679454c068e2266307a2cd2431a77a398e | |
parent | 093a70482f693c179e3646c512acf649ebcebc37 (diff) | |
download | picogpsp-3af92d87a1a47c1291b5e04f1d12f84066ec248e.tar.gz picogpsp-3af92d87a1a47c1291b5e04f1d12f84066ec248e.tar.bz2 picogpsp-3af92d87a1a47c1291b5e04f1d12f84066ec248e.zip |
Take out Windows CE code
-rw-r--r-- | common.h | 26 | ||||
-rw-r--r-- | gui.c | 4 | ||||
-rw-r--r-- | main.c | 2 |
3 files changed, 11 insertions, 21 deletions
@@ -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 */ @@ -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) @@ -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) |