mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-06 00:29:44 +02:00
Guard inclusion of stdarg.h and definition of VA_START
with #if PROTOTYPES rather than with #ifdef __STDC__. The latter loses with Dynix/PTX. (wrapf) [PROTOTYPES]: Similarly, guard ANSI-style ... definition. Suggestion from Marcus Daniels.
This commit is contained in:
+2
-2
@@ -39,7 +39,7 @@
|
||||
# include <sys/ptem.h>
|
||||
#endif
|
||||
#include <getopt.h>
|
||||
#ifdef __STDC__
|
||||
#if PROTOTYPES
|
||||
# include <stdarg.h>
|
||||
# define VA_START(args, lastarg) va_start(args, lastarg)
|
||||
#else
|
||||
@@ -422,7 +422,7 @@ char *program_name;
|
||||
|
||||
/* VARARGS */
|
||||
static void
|
||||
#ifdef __STDC__
|
||||
#if PROTOTYPES
|
||||
wrapf (const char *message,...)
|
||||
#else
|
||||
wrapf (message, va_alist)
|
||||
|
||||
Reference in New Issue
Block a user