From 8e0a5b0aa0d377e979b87249d96390498ffbeeea Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 3 May 2011 12:03:46 +0000 Subject: 29134: change termcap prototypes locally for AIX --- Src/prototypes.h | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'Src/prototypes.h') diff --git a/Src/prototypes.h b/Src/prototypes.h index bedde8df1..f059b6620 100644 --- a/Src/prototypes.h +++ b/Src/prototypes.h @@ -34,12 +34,24 @@ char *calloc _((size_t, size_t)); #endif #if !(defined(USES_TERMCAP_H) || defined(USES_TERM_H)) -extern int tgetent _((char *bp, const char *name)); -extern int tgetnum _((const char *id)); -extern int tgetflag _((const char *id)); -extern char *tgetstr _((const char *id, char **area)); -extern char *tgoto _((const char *cm, int destcol, int destline)); -extern int tputs _((const char *cp, int affcnt, int (*outc) (int))); +/* + * These prototypes are only used where we don't have the + * headers. In some cases they need tweaking. + * TBD: we'd much prefer to get hold of the header where + * these are defined. + */ +#ifdef _AIX +#define TC_CONST const +#else +#define TC_CONST +#endif +extern int tgetent _((char *bp, TC_CONST char *name)); +extern int tgetnum _((char *id)); +extern int tgetflag _((char *id)); +extern char *tgetstr _((char *id, char **area)); +extern char *tgoto _((TC_CONST char *cm, int destcol, int destline)); +extern int tputs _((TC_CONST char *cp, int affcnt, int (*outc) (int))); +#undef TC_CONST #endif /* MISSING PROTOTYPES FOR VARIOUS OPERATING SYSTEMS */ -- cgit 1.4.1