PPC fix by James Vega, fixing an issue with a variable named putc, which clashed with the putc macro

darcs-hash:20060403150422-ac50b-78d5db541cb1f41bfea55deac7578c0df73605bd.gz
This commit is contained in:
axel 2006-04-04 01:04:22 +10:00
parent 634bdb8b3b
commit db5b887824
2 changed files with 4 additions and 4 deletions

View file

@ -38,17 +38,17 @@
#include <ncurses/term.h>
#endif
#include "common.h"
#include "fallback.h"
#include "util.h"
#ifdef TPUTS_KLUDGE
int tputs(const char *str, int affcnt, int (*putc)(tputs_arg_t))
int tputs(const char *str, int affcnt, int (*fish_putc)(tputs_arg_t))
{
while( *str )
{
putc( *str++ );
fish_putc( *str++ );
}
}

View file

@ -27,7 +27,7 @@ typedef char tputs_arg_t;
Linux on PPC seems to have a tputs implementation that sometimes
behaves strangely. This fallback seems to fix things.
*/
int tputs(const char *str, int affcnt, int (*putc)(tputs_arg_t));
int tputs(const char *str, int affcnt, int (*fish_putc)(tputs_arg_t));
#endif