X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fregression%2Ffwk%2Flib%2Ftestfwk.c;h=48d923178d87502ec8480b97ea7d4453c93822e3;hb=c34cf61917860a821a4631edda334443633805e7;hp=766954a697bc171d4641df4e649fd41deb704569;hpb=c0a17955b1c4fe4010e44bce96f26434a4ad9e73;p=fw%2Fsdcc diff --git a/support/regression/fwk/lib/testfwk.c b/support/regression/fwk/lib/testfwk.c index 766954a6..48d92317 100644 --- a/support/regression/fwk/lib/testfwk.c +++ b/support/regression/fwk/lib/testfwk.c @@ -7,6 +7,12 @@ #include /* main() must see the ISR declarations */ #endif +#if defined(PORT_HOST) || defined(SDCC_z80) || defined(SDCC_gbz80) +#define _REENTRANT +#else +#define _REENTRANT reentrant +#endif + /** Define this if the port's div or mod functions are broken. A slow loop based method will be substituded. */ @@ -45,7 +51,7 @@ int __mod(int num, int denom) } #endif -static void _printn(int n) +static void _printn(int n) _REENTRANT { int rem;