From 68f2517f722ea38e90b9e0d3f22182e03a4354df Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 24 Apr 2007 16:01:15 +0000 Subject: * libc/include/limits.h (NL_ARGMAX): Define a default value. * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of NL_ARGMAX, if present. --- newlib/libc/stdio/vfprintf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'newlib/libc/stdio') diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index 0e40a3e8f..0f9f78bfe 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -320,7 +320,11 @@ typedef int * int_ptr_t; typedef short * short_ptr_t; #ifndef _NO_POS_ARGS -#define MAX_POS_ARGS 32 +# ifdef NL_ARGMAX +# define MAX_POS_ARGS NL_ARGMAX +# else +# define MAX_POS_ARGS 32 +# endif union arg_val { -- cgit v1.2.3