mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-09 02:52:04 +08:00
Use HAVE_STDARG to choose between stdarg and varargs version of debug_printf.
This commit is contained in:
parent
ac687014ec
commit
6f8c9a7890
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user