Skip to content
Snippets Groups Projects
Commit 6f8c9a78 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

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

parent ac687014
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment