X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fprintf_fast.c;h=1db100827710ce1ff0e0bf9473662a03f1aae361;hb=5689c6b6b4499a51a342499e09bd58529b1d89ae;hp=698f9fa1b9e7d699c5e4dbf4fe673ffee2e636e7;hpb=0adcbc113c1df48d6d1c5a9d25fbf357da7b1323;p=fw%2Fsdcc diff --git a/device/lib/printf_fast.c b/device/lib/printf_fast.c index 698f9fa1..1db10082 100644 --- a/device/lib/printf_fast.c +++ b/device/lib/printf_fast.c @@ -119,6 +119,18 @@ static data unsigned int i2bcd_tmp; // slow 32 int conversion needs temp space #define PRINTF_FAST printf_fast #endif + +#if !defined(SDCC_mcs51) || defined(SDCC_USE_XSTACK) || defined(_SDCC_NO_ASM_LIB_FUNCS) +// Does printf_fast really work on ds390 and ds400? +// If it does, enable them in the line above +#if defined(SDCC_USE_XSTACK) +#warning "printf_fast not built, does not support --xstack" +#elif defined(_SDCC_NO_ASM_LIB_FUNCS) +#warning "printf_fast not built, _SDCC_NO_ASM_LIB_FUNCS defined" +#endif +#else // defines are compatible with printf_fast + + void PRINTF_FAST(code char *fmt, ...) reentrant { fmt; /* supress unreferenced variable warning */ @@ -1735,5 +1747,5 @@ static code unsigned char frac2bcd[] = { #endif // FLOAT - +#endif // defines compatible with printf_fast