Browse Source

guard *printf_function w/ UCLIBC_HAS_GLIBC_CUSTOM_PRINTF

Peter S. Mazinger 18 years ago
parent
commit
22eceb9a83
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/printf.h

+ 2 - 0
include/printf.h

@@ -154,6 +154,7 @@ struct printf_info
    The function should return the number of characters written,
    or -1 for errors.  */
 
+#ifdef __UCLIBC_HAS_GLIBC_CUSTOM_PRINTF__
 typedef int (*printf_function) (FILE *__stream,
 			     __const struct printf_info *__info,
 			     __const void *__const *__args);
@@ -172,6 +173,7 @@ typedef int printf_arginfo_function (__const struct printf_info *__info,
 
 extern int register_printf_function (int __spec, printf_function __func,
 				     printf_arginfo_function __arginfo);
+#endif
 
 
 /* Parse FMT, and fill in N elements of ARGTYPES with the