Fix build by defining MAX() macro here.

This commit is contained in:
jkim 2010-07-09 05:25:14 +00:00
parent ad7dfe8fd7
commit ef22791b81

View File

@ -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;