aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-termcap.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-03-02 12:56:50 +0000
committerYao Qi <yao@codesourcery.com>2012-03-02 12:56:50 +0000
commita95babbf381faac591ef74244aba6b399448c653 (patch)
tree0585544f468251638a29bf0c3fa24eba2b6515b7 /gdb/windows-termcap.c
parentd603d4b3dad936893df823ac1906b175298d7d6a (diff)
downloadfsf-binutils-gdb-a95babbf381faac591ef74244aba6b399448c653.zip
fsf-binutils-gdb-a95babbf381faac591ef74244aba6b399448c653.tar.gz
fsf-binutils-gdb-a95babbf381faac591ef74244aba6b399448c653.tar.bz2
gdb/
Fix -Wmissing-prototypes build. * charset.c (phony_iconv_open): Make static. (phony_iconv_close, phony_iconv): Likewise. * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype. * i386-windows-nat.c (_initialize_i386_windows_nat): New prototype. * mingw-hdep.c (_initialize_mingw_hdep): New prototype. * ser-mingw.c (create_select_thread): Make static. * windows-termcap.c (tgetent): New prototype. (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
Diffstat (limited to 'gdb/windows-termcap.c')
-rw-r--r--gdb/windows-termcap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/windows-termcap.c b/gdb/windows-termcap.c
index a70b6e8..7f946ea 100644
--- a/gdb/windows-termcap.c
+++ b/gdb/windows-termcap.c
@@ -21,6 +21,14 @@
#include <stdlib.h>
+/* -Wmissing-prototypes */
+extern int tgetent (char *buffer, char *termtype);
+extern int tgetnum (char *name);
+extern int tgetflag (char *name);
+extern char* tgetstr (char *name, char **area);
+extern int tputs (char *string, int nlines, int (*outfun) ());
+extern char *tgoto (const char *cap, int col, int row);
+
/* Each of the files below is a minimal implementation of the standard
termcap function with the same name, suitable for use in a Windows
console window. */