This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello, I couldn't believe my eyes... On AiX, /usr/include/term.h defines the following macros: #define lines CUR _c3 #define label_width CURN _labl_width That has a rather unfortunate consequence during the build of tui-disasm.c and tui-regs.c, where we have variables using these names. The variable names get expanded and kaboom! So I suggest the following change, where I appended "tui_" to the variable names to avoid the macro expansion (short of finding a better replacement name). 2004-02-23 J. Brobecker <brobecker@gnat.com> * tui-disasm.c: %s/lines/tui_lines/g to avoid a collision with the lines macro defined in term.h on AiX. * tui-regs.c: %s/label_width/tui_label_width/g, to avoid a collision with the label_width macro defined in term.h on AiX. Tested on ppc-aix 4.3.2.0. OK to apply? Thanks, -- Joel
Attachment:
tui.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |