Commit 33e927bf authored by David Lawrence's avatar David Lawrence
Browse files

98. [cleanup] <isc/print.h> does not need <stdarg.h> or <stddef.h>

                        unless ISC_PLATFORM_NEEDVSNPRINTF is defined.
parent 3e6b9858
98. [cleanup] <isc/print.h> does not need <stdarg.h> or <stddef.h>
unless ISC_PLATFORM_NEEDVSNPRINTF is defined.
97. [cleanup] <isc/ondestroy.h> does not need <stddef.h> or
<isc/event.h>.
......
......@@ -22,8 +22,6 @@
*** Imports
***/
#include <stdarg.h>
#include <isc/lang.h>
#include <isc/platform.h>
......@@ -31,9 +29,12 @@
*** Functions
***/
#ifdef ISC_PLATFORM_NEEDVSNPRINTF
#include <stdarg.h>
#include <stddef.h>
ISC_LANG_BEGINDECLS
#ifdef ISC_PLATFORM_NEEDVSNPRINTF
int
isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap);
#define vsnprintf isc_print_vsnprintf
......@@ -41,8 +42,8 @@ isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap);
int
isc_print_snprintf(char *str, size_t size, const char *format, ...);
#define snprintf isc_print_snprintf
#endif
ISC_LANG_ENDDECLS
#endif /* ISC_PLATFORM_NEEDVSNPRINTF */
#endif /* ISC_PRINT_H */
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