mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-21 14:17:27 -04:00
#undef before #define
This commit is contained in:
parent
2ac85d943b
commit
503f0b324a
1 changed files with 5 additions and 0 deletions
|
|
@ -77,29 +77,34 @@ ISC_LANG_BEGINDECLS
|
|||
int
|
||||
isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap)
|
||||
ISC_FORMAT_PRINTF(3, 0);
|
||||
#undef vsnprintf
|
||||
#define vsnprintf isc_print_vsnprintf
|
||||
|
||||
int
|
||||
isc_print_snprintf(char *str, size_t size, const char *format, ...)
|
||||
ISC_FORMAT_PRINTF(3, 4);
|
||||
#undef snprintf
|
||||
#define snprintf isc_print_snprintf
|
||||
#endif /* ISC_PLATFORM_NEEDVSNPRINTF */
|
||||
|
||||
#ifdef ISC_PLATFORM_NEEDSPRINTF
|
||||
int
|
||||
isc_print_sprintf(char *str, const char *format, ...) ISC_FORMAT_PRINTF(2, 3);
|
||||
#undef sprintf
|
||||
#define sprintf isc_print_sprintf
|
||||
#endif
|
||||
|
||||
#ifdef ISC_PLATFORM_NEEDPRINTF
|
||||
int
|
||||
isc_print_printf(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);
|
||||
#undef printf
|
||||
#define printf isc_print_printf
|
||||
#endif
|
||||
|
||||
#ifdef ISC_PLATFORM_NEEDFPRINTF
|
||||
int
|
||||
isc_print_fprintf(FILE * fp, const char *format, ...) ISC_FORMAT_PRINTF(2, 3);
|
||||
#undef fprintf
|
||||
#define fprintf isc_print_fprintf
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue