Commit 08d194e6 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Test HAVE_STDARG_H. Don't declare isc_printf and isc_vprintf unless

HAVE_STDARG_H.
parent ee28ab54
......@@ -14,7 +14,9 @@
#define __ISC_H__
#include <time.h>
#include <stdarg.h>
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif
#include <sys/types.h>
#include <sys/socket.h>
......@@ -512,18 +514,23 @@ isc_putc(int chr,
/*
** Put a formatted string on the transmit queue
** Put a formatted string on the transmit queue. Not available unless
** your system supports <stdarg.h>. Avoid these functions. They are
** likely to disappear in future versions of ISC.
*/
#ifdef HAVE_STDARG_H
extern int
isc_printf(IscSession * scb,
const char * format,
...);
#endif
#ifdef HAVE_STDARG_H
extern int
isc_vprintf(IscSession * scb,
const char * format,
va_list AP);
#endif
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment