mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-15 19:22:46 -04:00
98. [cleanup] <isc/print.h> does not need <stdarg.h> or <stddef.h>
unless ISC_PLATFORM_NEEDVSNPRINTF is defined.
This commit is contained in:
parent
3e6b98586e
commit
33e927bf86
2 changed files with 8 additions and 4 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue