From: Mark Eichin Date: Thu, 16 Jun 1994 05:02:11 +0000 (+0000) Subject: make stdarg consistent X-Git-Tag: krb5-1.0-beta4~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=313d6830d358ab00b1b4ea90a3d3fb114b1f1bcc;p=krb5.git make stdarg consistent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3834 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/et/com_err.c b/src/util/et/com_err.c index fa66a113c..7cc68939c 100644 --- a/src/util/et/com_err.c +++ b/src/util/et/com_err.c @@ -7,10 +7,7 @@ #include #include "mit-sipb-copyright.h" -/* Need for STDARG_PROTOTYPES */ -/* #include -- now tested locally*/ - -#if __STDC__ || defined(STDARG_PROTOTYPES) +#ifdef STDARG_PROTOTYPES #include #else #include diff --git a/src/util/et/com_err.h b/src/util/et/com_err.h index 7bea01004..c5a3634bd 100644 --- a/src/util/et/com_err.h +++ b/src/util/et/com_err.h @@ -10,12 +10,17 @@ #ifndef __COM_ERR_H -#ifdef __STDC__ -#ifndef __HIGHC__ /* gives us STDC but not stdarg */ +#ifdef UseStdarg +#define STDARG_PROTOTYPES +#endif + +#ifdef STDARG_PROTOTYPES #include #else #include #endif + +#ifdef __STDC__ /* ANSI C -- use prototypes etc */ void com_err (const char *, long, const char *, ...); char const *error_message (long); diff --git a/src/util/et/configure.in b/src/util/et/configure.in index c1b7fc06d..8a40695ff 100644 --- a/src/util/et/configure.in +++ b/src/util/et/configure.in @@ -5,4 +5,5 @@ AC_PROG_RANLIB HAVE_YYLINENO DECLARE_SYS_ERRLIST CONFIG_RULES +CHECK_STDARG AC_OUTPUT(Makefile,[EXTRA_RULES])