Take out Windows CE code
This commit is contained in:
parent
093a70482f
commit
3af92d87a1
6
common.h
6
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,9 +34,6 @@
|
|||
// 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>
|
||||
|
@ -47,7 +44,6 @@
|
|||
#include <stdarg.h>
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
#endif /* _WIN32_WCE */
|
||||
|
||||
#endif /* ARM_ARCH */
|
||||
|
||||
|
|
4
gui.c
4
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)
|
||||
|
|
2
main.c
2
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)
|
||||
|
|
Loading…
Reference in New Issue