diff --git a/CHANGES b/CHANGES index 8edda9ec79..61495b908f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ + 98. [cleanup] does not need or + unless ISC_PLATFORM_NEEDVSNPRINTF is defined. + 97. [cleanup] does not need or . diff --git a/lib/isc/include/isc/print.h b/lib/isc/include/isc/print.h index 718189def1..8cdf901bbf 100644 --- a/lib/isc/include/isc/print.h +++ b/lib/isc/include/isc/print.h @@ -22,8 +22,6 @@ *** Imports ***/ -#include - #include #include @@ -31,9 +29,12 @@ *** Functions ***/ +#ifdef ISC_PLATFORM_NEEDVSNPRINTF +#include +#include + 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 */