undef reg in gdb_curses.h
authorTom Tromey <tromey@redhat.com>
Wed, 16 Oct 2013 18:25:27 +0000 (12:25 -0600)
committerTom Tromey <tromey@redhat.com>
Tue, 29 Oct 2013 16:41:30 +0000 (10:41 -0600)
commitaee17e424f491173bb377b97c397bca1604bf5b8
tree37d19060157ff961f0748e31c2ad9eb94dd47e0e
parent9ac6985971f0af43d4dd385798db42eecb4ea98b
undef reg in gdb_curses.h

I tried to build gdb on the AIX machine in the GCC compile farm
(gcc111), but it failed in a couple of spots because gdb uses "reg" as
a variable name and the AIX <curses.h> defines "reg" to "register".

I saw that we already had a workaround for this lurking in utils.c, so
I just moved that to gdb_curses.h.

This fixed the problem on AIX and still builds on x86-64 Fedora 18.

2013-10-29  Tom Tromey  <tromey@redhat.com>

* utils.c (reg): Move undefinition...
* gdb_curses.h: ... here.  Update comment to mention AIX.
gdb/ChangeLog
gdb/gdb_curses.h
gdb/utils.c
This page took 0.023615 seconds and 4 git commands to generate.