Windows CE support.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2884 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2007-12-23 05:26:44 +00:00
parent 1a818a91a9
commit 02ef0c439e
6 changed files with 21 additions and 4 deletions
+1
View File
@@ -1,4 +1,5 @@
Changes towards version 0.7:
- Support for Windows CE. - SvdB with Pavel Chernikov
- Added support to the unix build system for explicitely specifying the name
of the define to set to show when a symbol is found.
Also a fix for when 'strcasecmp' is #define'd by the system. - SvdB
+3
View File
@@ -77,6 +77,9 @@ int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
// If anyone can tell me which one matches NAME_MAX, please
// let me know. - SvdB
#else
#ifdef _WIN32_WCE
# include <sys/syslimits.h>
#endif
# include <limits.h>
/* PATH_MAX is per POSIX defined in <limits.h>, but:
* "A definition of one of the values from Table 2.6 shall bea
@@ -170,6 +170,15 @@ static keyname keynames[] = {
{"Power", SDLK_POWER},
{"Euro", SDLK_EURO},
{"Undo", SDLK_UNDO},
#ifdef _WIN32_WCE
{"App1", SDLK_APP1},
{"App2", SDLK_APP2},
{"App3", SDLK_APP3},
{"App4", SDLK_APP4},
{"App5", SDLK_APP5},
{"App6", SDLK_APP6},
#endif
{"Unknown", 0}};
/* Last element must have code zero */
@@ -25,7 +25,9 @@
#include <stdio.h>
#include <errno.h>
#ifndef _WIN32_WCE
# include <memory.h>
#endif
#include <string.h>
#include "port.h"
#include "types.h"
+2 -2
View File
@@ -25,7 +25,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
#ifdef __unix__
#if defined(__unix__) && !defined(_WIN32_WCE)
# include <sys/wait.h>
#endif
@@ -496,7 +496,7 @@ debugCmdExec(DebugContext *debugContext, int argc, char *argv[]) {
fprintf(debugContext->err, " %s", newArgs[i]);
fprintf(debugContext->err, "\n");
#ifdef __unix__
#if defined(__unix__) && !defined(_WIN32_WCE)
{
pid_t pid;
+2
View File
@@ -45,6 +45,8 @@
// _MAX_DIR and FILENAME_MAX could also be candidates.
// If anyone can tell me which one matches NAME_MAX, please
// let me know.
#elif defined(_WIN32_WCE)
# include <sys/syslimits.h>
#else
# include <limits.h>
/* PATH_MAX is per POSIX defined in <limits.h>, but: