diff --git a/sc2/ChangeLog b/sc2/ChangeLog index 5c7dd3996..e8b503aaa 100644 --- a/sc2/ChangeLog +++ b/sc2/ChangeLog @@ -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 diff --git a/sc2/src/port.h b/sc2/src/port.h index 5cbd2b509..07475e2f0 100644 --- a/sc2/src/port.h +++ b/sc2/src/port.h @@ -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 +#endif # include /* PATH_MAX is per POSIX defined in , but: * "A definition of one of the values from Table 2.6 shall bea diff --git a/sc2/src/sc2code/libs/input/sdl/keynames.c b/sc2/src/sc2code/libs/input/sdl/keynames.c index a0d61f820..062ab01bd 100644 --- a/sc2/src/sc2code/libs/input/sdl/keynames.c +++ b/sc2/src/sc2code/libs/input/sdl/keynames.c @@ -170,7 +170,16 @@ static keyname keynames[] = { {"Power", SDLK_POWER}, {"Euro", SDLK_EURO}, {"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 */ char * diff --git a/sc2/src/sc2code/libs/sound/decoders/aiffaud.c b/sc2/src/sc2code/libs/sound/decoders/aiffaud.c index b38ced0dc..d11807bd9 100644 --- a/sc2/src/sc2code/libs/sound/decoders/aiffaud.c +++ b/sc2/src/sc2code/libs/sound/decoders/aiffaud.c @@ -25,7 +25,9 @@ #include #include -#include +#ifndef _WIN32_WCE +# include +#endif #include #include "port.h" #include "types.h" diff --git a/sc2/src/sc2code/libs/uio/debug.c b/sc2/src/sc2code/libs/uio/debug.c index 96ddcd4a3..69d9b0b63 100644 --- a/sc2/src/sc2code/libs/uio/debug.c +++ b/sc2/src/sc2code/libs/uio/debug.c @@ -25,7 +25,7 @@ #include #include #include -#ifdef __unix__ +#if defined(__unix__) && !defined(_WIN32_WCE) # include #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; diff --git a/sc2/src/sc2code/libs/uio/uioport.h b/sc2/src/sc2code/libs/uio/uioport.h index e974fc228..1eb6cf58e 100644 --- a/sc2/src/sc2code/libs/uio/uioport.h +++ b/sc2/src/sc2code/libs/uio/uioport.h @@ -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 #else # include /* PATH_MAX is per POSIX defined in , but: