Use HAVE_STDARG to choose between stdarg and varargs version of debug_printf.

This commit is contained in:
Hallvard Furuseth 1999-03-04 12:58:56 +00:00
parent ac687014ec
commit 6f8c9a7890

View File

@ -321,7 +321,7 @@ ecalloc( unsigned nelem, unsigned elsize )
/* VARARGS */
void
debug_printf
#ifdef STDC_HEADERS
#if HAVE_STDARG
( char *fmt, ... )
#else
( va_alist )
@ -329,12 +329,12 @@ debug_printf
#endif
{
va_list ap;
#ifndef STDC_HEADERS
#if !HAVE_STDARG
char *fmt;
#endif
if ( debugflg ) {
#ifdef STDC_HEADERS
#if HAVE_STDARG
va_start( ap, fmt );
#else
va_start( ap );