Commit 503f0b32 authored by Mark Andrews's avatar Mark Andrews
Browse files

#undef before #define

parent 2ac85d94
...@@ -77,29 +77,34 @@ ISC_LANG_BEGINDECLS ...@@ -77,29 +77,34 @@ ISC_LANG_BEGINDECLS
int int
isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap) isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap)
ISC_FORMAT_PRINTF(3, 0); ISC_FORMAT_PRINTF(3, 0);
#undef vsnprintf
#define vsnprintf isc_print_vsnprintf #define vsnprintf isc_print_vsnprintf
int int
isc_print_snprintf(char *str, size_t size, const char *format, ...) isc_print_snprintf(char *str, size_t size, const char *format, ...)
ISC_FORMAT_PRINTF(3, 4); ISC_FORMAT_PRINTF(3, 4);
#undef snprintf
#define snprintf isc_print_snprintf #define snprintf isc_print_snprintf
#endif /* ISC_PLATFORM_NEEDVSNPRINTF */ #endif /* ISC_PLATFORM_NEEDVSNPRINTF */
#ifdef ISC_PLATFORM_NEEDSPRINTF #ifdef ISC_PLATFORM_NEEDSPRINTF
int int
isc_print_sprintf(char *str, const char *format, ...) ISC_FORMAT_PRINTF(2, 3); isc_print_sprintf(char *str, const char *format, ...) ISC_FORMAT_PRINTF(2, 3);
#undef sprintf
#define sprintf isc_print_sprintf #define sprintf isc_print_sprintf
#endif #endif
#ifdef ISC_PLATFORM_NEEDPRINTF #ifdef ISC_PLATFORM_NEEDPRINTF
int int
isc_print_printf(const char *format, ...) ISC_FORMAT_PRINTF(1, 2); isc_print_printf(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);
#undef printf
#define printf isc_print_printf #define printf isc_print_printf
#endif #endif
#ifdef ISC_PLATFORM_NEEDFPRINTF #ifdef ISC_PLATFORM_NEEDFPRINTF
int int
isc_print_fprintf(FILE * fp, const char *format, ...) ISC_FORMAT_PRINTF(2, 3); isc_print_fprintf(FILE * fp, const char *format, ...) ISC_FORMAT_PRINTF(2, 3);
#undef fprintf
#define fprintf isc_print_fprintf #define fprintf isc_print_fprintf
#endif #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