diff options
Diffstat (limited to 'backends/PalmOS/Src/missing/ext_stdio.c')
-rw-r--r-- | backends/PalmOS/Src/missing/ext_stdio.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/backends/PalmOS/Src/missing/ext_stdio.c b/backends/PalmOS/Src/missing/ext_stdio.c index c973e64552..f7d37a9140 100644 --- a/backends/PalmOS/Src/missing/ext_stdio.c +++ b/backends/PalmOS/Src/missing/ext_stdio.c @@ -381,6 +381,9 @@ Int32 printf(const Char *format, ...) { // DONE return numBytesWritten; } +/* needed with 68k mode only, already defined in ARM MSL */ +#ifdef PALMOS_68K + Int32 sprintf(Char* s, const Char* formatStr, ...) { Int16 count; va_list va; @@ -571,12 +574,12 @@ Int32 vsprintf(Char* s, const Char* formatStr, _Palm_va_list argParam) { mod++; // prepare new format -#if !defined(PALMOS_ARM) +//#if !defined(PALMOS_ARM) if (*mod == 'c') { StrCopy(tmp, "`c`%c%c"); } else -#endif +//#endif if (*mod == 'p') { StrCopy(tmp, "%08lX"); // %x = %08X in palmos @@ -635,11 +638,13 @@ Int32 vsprintf(Char* s, const Char* formatStr, _Palm_va_list argParam) { // Copy result in a temp buffer to process last formats StrVPrintF(result, format, argParam); -#if !defined(PALMOS_ARM) +//#if !defined(PALMOS_ARM) StrProcC_(result, 256); -#endif +//#endif StrProcXO(result, 256, tmp); StrCopy(s, result); return StrLen(s); } + +#endif |