From f4664bd9ee105f9b130066021b0cc3f9f4831e24 Mon Sep 17 00:00:00 2001 From: "dougt%meer.net" Date: Tue, 26 Jul 2005 22:22:59 +0000 Subject: [PATCH] Mapping _mkdir, _fdopen, _open, to existing mozce_ apis. Adding SmartPhone tools to build process. NPODB --- build/wince/shunt/include/mozce_defs.h | 4 ++++ build/wince/shunt/include/mozce_shunt.h | 15 +++++++++++++++ build/wince/tools/Makefile | 11 +++++++++++ build/wince/tools/sp2003arm/toolpaths.h | 2 +- 4 files changed, 31 insertions(+), 1 deletion(-) diff --git a/build/wince/shunt/include/mozce_defs.h b/build/wince/shunt/include/mozce_defs.h index 2f3c705a37e..28dfeaede2c 100755 --- a/build/wince/shunt/include/mozce_defs.h +++ b/build/wince/shunt/include/mozce_defs.h @@ -121,6 +121,10 @@ typedef void (*_sigsig)(int inSignal); #define _O_TEMPORARY 0x0040 // temporary file bit +#define _O_CREAT O_CREAT +#define _O_TRUNC O_TRUNC +#define _O_WRONLY O_WRONLY + // From stdlib.h #define _MAX_DRIVE MAX_PATH #define _MAX_DIR MAX_PATH diff --git a/build/wince/shunt/include/mozce_shunt.h b/build/wince/shunt/include/mozce_shunt.h index 903799100d0..d94511b0175 100755 --- a/build/wince/shunt/include/mozce_shunt.h +++ b/build/wince/shunt/include/mozce_shunt.h @@ -68,6 +68,11 @@ #endif #define mkdir mozce_mkdir +#ifdef _mkdir +#undef _mkdir +#endif +#define _mkdir mozce_mkdir + #ifdef rmdir #undef rmdir #endif @@ -213,6 +218,11 @@ #endif #define rewind mozce_rewind +#ifdef fdopen +#undef fdopen +#endif +#define fdopen mozce_fdopen + #ifdef _fdopen #undef _fdopen #endif @@ -249,6 +259,11 @@ #endif #define open mozce_open +#ifdef _open +#undef _open +#endif +#define _open mozce_open + #ifdef close #undef close #endif diff --git a/build/wince/tools/Makefile b/build/wince/tools/Makefile index 64aba752e42..adb15f1de21 100755 --- a/build/wince/tools/Makefile +++ b/build/wince/tools/Makefile @@ -19,10 +19,21 @@ all: cl ppc2003em/arm-wince-link.c mv arm-wince-link.exe ppc2003em rm -f *.obj + cl sp2003arm/arm-wince-as.c + mv arm-wince-as.exe sp2003arm + cl sp2003arm/arm-wince-gcc.c + mv arm-wince-gcc.exe sp2003arm + cl sp2003arm/arm-wince-lib.c + mv arm-wince-lib.exe sp2003arm + cl sp2003arm/arm-wince-link.c + mv arm-wince-link.exe sp2003arm + rm -f *.obj clobber: rm -f ppc2003em/*.exe rm -f ppc2003em/*.obj rm -f ppc2003arm/*.exe rm -f ppc2003arm/*.obj + rm -f sp2003arm/*.exe + rm -f sp2003arm/*.obj rm -f *.obj diff --git a/build/wince/tools/sp2003arm/toolpaths.h b/build/wince/tools/sp2003arm/toolpaths.h index e50731aaa8d..d7e49f28482 100755 --- a/build/wince/tools/sp2003arm/toolpaths.h +++ b/build/wince/tools/sp2003arm/toolpaths.h @@ -7,7 +7,7 @@ #define WCE_INC "c:/Program Files/Windows CE Tools/wce420/SMARTPHONE 2003/Include/Armv4/" #define WCE_LIB "c:/Program Files/Windows CE Tools/wce420/SMARTPHONE 2003/Lib/Armv4/" -#define SHUNT_LIB TOPSRCDIR "/build/wince/shunt/build/ARMV4Rel/" +#define SHUNT_LIB TOPSRCDIR "/build/wince/shunt/build/ARMV4SmartPhone/" #define SHUNT_INC TOPSRCDIR "/build/wince/shunt/include/" #define ASM_PATH WCE_BIN "armasm.exe"