1
0
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:
Jim Meyering
1996-10-24 04:46:33 +00:00
parent 2be918d5cd
commit b8ad9be908
+2 -2
View File
@@ -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)