stub termcap, add extern "C"
authorYuanhui Zhang <asmwarrior@gmail.com>
Mon, 16 Mar 2015 11:28:24 +0000 (11:28 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 16 Mar 2015 11:36:00 +0000 (11:36 +0000)
commitd053f6be557fa3bedd4ccbd969103dbb51a37439
tree968282cee5db36ad117f1e14e56134f09b0ac974
parentb1a921c8c6f9e3d033629f32473c6470c360b43f
stub termcap, add extern "C"

Fixes linking an --enable-build-with-cxx build on mingw:

 ../readline/terminal.c:278: undefined reference to `tgetnum'
 ../readline/terminal.c:297: undefined reference to `tgetnum'
 ../readline/libreadline.a(terminal.o): In function `get_term_capabilities':
 ../readline/terminal.c:427: undefined reference to `tgetstr'
 ../readline/libreadline.a(terminal.o): In function `_rl_init_terminal_io':
 [etc.]

gdb/ChangeLog:
2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
    Pedro Alves  <palves@redhat.com>

* gdb_curses.h (tgetnum): Mark with EXTERN_C.
* stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
(tgoto): Wrap with extern "C".
gdb/ChangeLog
gdb/gdb_curses.h
gdb/stub-termcap.c