From 4aa351cb617f57092a0f17df6a25081586ea7803 Mon Sep 17 00:00:00 2001 From: Greg Haerr Date: Fri, 13 Sep 2024 22:39:14 -0600 Subject: [PATCH] Fix Watcom build --- libc/stdio/vfprintf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libc/stdio/vfprintf.c b/libc/stdio/vfprintf.c index 96c46db7a..e1f4d0035 100644 --- a/libc/stdio/vfprintf.c +++ b/libc/stdio/vfprintf.c @@ -227,12 +227,12 @@ vfprintf(FILE *op, const char *fmt, va_list ap) p = buf + sizeof(buf) - 1; *p = '\0'; do { -#if 1 - c = radix; - v = __divmod(v, &c); /* remainder returned in c */ -#else +#if __WATCOMC__ c = v % radix; v = v / radix; +#else + c = radix; + v = __divmod(v, &c); /* remainder returned in c */ #endif if (c > 9) *--p = ((*fmt == 'X')? 'A': 'a') - 10 + c;