diff --git a/lib/libstand/printf.c b/lib/libstand/printf.c index f6c94e358f08..97cf8f7eaa56 100644 --- a/lib/libstand/printf.c +++ b/lib/libstand/printf.c @@ -151,6 +151,7 @@ ksprintn(char *nbuf, uintmax_t num, int base, int *lenp, int upper) static int kvprintf(char const *fmt, void (*func)(int), void *arg, int radix, va_list ap) { +#define MAX(a, b) (((a) > (b)) ? (a) : (b)) #define PCHAR(c) {int cc=(c); if (func) (*func)(cc); else *d++ = cc; retval++; } char nbuf[MAXNBUF]; char *d;