mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
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".
This commit is contained in:

committed by
Pedro Alves

parent
b1a921c8c6
commit
d053f6be55
@ -51,7 +51,7 @@
|
||||
of the termcap functions will be built from stub-termcap.c. Readline
|
||||
provides its own extern declarations when there's no termcap.h; do the
|
||||
same here for the termcap functions used in GDB. */
|
||||
extern int tgetnum (const char *);
|
||||
EXTERN_C int tgetnum (const char *);
|
||||
#endif
|
||||
|
||||
/* SunOS's curses.h has a '#define reg register' in it. Thank you Sun. */
|
||||
|
Reference in New Issue
Block a user