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:
@@ -1,4 +1,5 @@
|
|||||||
Changes towards version 0.7:
|
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
|
- Added support to the unix build system for explicitely specifying the name
|
||||||
of the define to set to show when a symbol is found.
|
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
|
Also a fix for when 'strcasecmp' is #define'd by the system. - SvdB
|
||||||
|
|||||||
@@ -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
|
// If anyone can tell me which one matches NAME_MAX, please
|
||||||
// let me know. - SvdB
|
// let me know. - SvdB
|
||||||
#else
|
#else
|
||||||
|
#ifdef _WIN32_WCE
|
||||||
|
# include <sys/syslimits.h>
|
||||||
|
#endif
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
/* PATH_MAX is per POSIX defined in <limits.h>, but:
|
/* PATH_MAX is per POSIX defined in <limits.h>, but:
|
||||||
* "A definition of one of the values from Table 2.6 shall bea
|
* "A definition of one of the values from Table 2.6 shall bea
|
||||||
|
|||||||
@@ -170,7 +170,16 @@ static keyname keynames[] = {
|
|||||||
{"Power", SDLK_POWER},
|
{"Power", SDLK_POWER},
|
||||||
{"Euro", SDLK_EURO},
|
{"Euro", SDLK_EURO},
|
||||||
{"Undo", SDLK_UNDO},
|
{"Undo", SDLK_UNDO},
|
||||||
{"Unknown", 0}};
|
#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 */
|
/* Last element must have code zero */
|
||||||
|
|
||||||
char *
|
char *
|
||||||
|
|||||||
@@ -25,7 +25,9 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <memory.h>
|
#ifndef _WIN32_WCE
|
||||||
|
# include <memory.h>
|
||||||
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "port.h"
|
#include "port.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#ifdef __unix__
|
#if defined(__unix__) && !defined(_WIN32_WCE)
|
||||||
# include <sys/wait.h>
|
# include <sys/wait.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -496,7 +496,7 @@ debugCmdExec(DebugContext *debugContext, int argc, char *argv[]) {
|
|||||||
fprintf(debugContext->err, " %s", newArgs[i]);
|
fprintf(debugContext->err, " %s", newArgs[i]);
|
||||||
fprintf(debugContext->err, "\n");
|
fprintf(debugContext->err, "\n");
|
||||||
|
|
||||||
#ifdef __unix__
|
#if defined(__unix__) && !defined(_WIN32_WCE)
|
||||||
{
|
{
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,8 @@
|
|||||||
// _MAX_DIR and FILENAME_MAX could also be candidates.
|
// _MAX_DIR and FILENAME_MAX could also be candidates.
|
||||||
// If anyone can tell me which one matches NAME_MAX, please
|
// If anyone can tell me which one matches NAME_MAX, please
|
||||||
// let me know.
|
// let me know.
|
||||||
|
#elif defined(_WIN32_WCE)
|
||||||
|
# include <sys/syslimits.h>
|
||||||
#else
|
#else
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
/* PATH_MAX is per POSIX defined in <limits.h>, but:
|
/* PATH_MAX is per POSIX defined in <limits.h>, but:
|
||||||
|
|||||||
Reference in New Issue
Block a user