diff --git a/Makefile b/Makefile index 77d385442..ac440c6ba 100644 --- a/Makefile +++ b/Makefile @@ -176,7 +176,7 @@ endif ifeq ($(PLAT),wince) CC = arm-mingw32ce-gcc OEXT = .exe - CFLAGS += -march=armv5tej -mcpu=arm926ej-s -DUNICODE -D_WIN32_WCE +CFLAGS += -march=armv5te -DUNICODE -D_WIN32_WCE -std=gnu99 LDFLAGS = -g LIBS = -lcoredll -lws2 BUILD_DIR = build/wince diff --git a/readme.md b/readme.md index 5ad5c02ae..b6753383e 100644 --- a/readme.md +++ b/readme.md @@ -401,6 +401,15 @@ The PowerPC build will usually perform much better [Guide for Carbide.c++](misc/symbian/readme.md) +#### Windows CE / PocketPC + +1. Install libmpfr-dev (or non-Debian equivalent) +2. Unpack [the Windows CE GCC Toolchain](https://cegcc.sourceforge.net/) and update your $PATH to include it +3. Add the following symbolic links in ```/usr/lib/i386-linux-gnu/``` to account for old toolchain versions: + * ```libmpfr.so.1``` -> ```libmpfr.so``` + * ```libgmp.so.3``` -> ```libgmp.so``` +4. Run ```make wince``` + #### Other systems You'll have to write the necessary code. You should read `portability.md` in doc folder. diff --git a/src/Core.h b/src/Core.h index 9d698709b..a919a0698 100644 --- a/src/Core.h +++ b/src/Core.h @@ -670,7 +670,7 @@ typedef cc_uint8 cc_bool; #define DEFAULT_NET_BACKEND CC_NET_BACKEND_BUILTIN #define DEFAULT_AUD_BACKEND CC_AUD_BACKEND_NULL #define DEFAULT_GFX_BACKEND CC_GFX_BACKEND_SOFTFP - #define DEFAULT_SSL_BACKEND CC_SSL_BACKEND_BEARSS + #define DEFAULT_SSL_BACKEND CC_SSL_BACKEND_BEARSSL #endif #endif diff --git a/src/Platform_WinCE.c b/src/Platform_WinCE.c index 93c290e6b..6a953a10e 100644 --- a/src/Platform_WinCE.c +++ b/src/Platform_WinCE.c @@ -44,7 +44,7 @@ static CRITICAL_SECTION dir_lock; *#########################################################################################################################*/ #include "main_impl.h" -int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow) { +int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow) { cc_result res; SetupProgram(0, NULL);