Use register_printf_specifier instead of deprecated register_printf_function, if available

This commit is contained in:
Martin Willi
2009-11-12 13:16:46 +01:00
parent 0850e33518
commit f6bbcec390
3 changed files with 29 additions and 11 deletions
+2 -1
View File
@@ -26,7 +26,8 @@ typedef struct printf_hook_t printf_hook_t;
typedef struct printf_hook_spec_t printf_hook_spec_t;
typedef enum printf_hook_argtype_t printf_hook_argtype_t;
#if defined(HAVE_PRINTF_HOOKS) && !defined(USE_VSTR)
#if !defined(USE_VSTR) && \
(defined(HAVE_PRINTF_FUNCTION) || defined(HAVE_PRINTF_SPECIFIER))
#include <stdio.h>
#include <printf.h>