summaryrefslogtreecommitdiff
path: root/bfd/coff-tic80.c
diff options
context:
space:
mode:
authorDave Korn <dave.korn@artimi.com>2005-05-08 23:48:38 +0000
committerDave Korn <dave.korn@artimi.com>2005-05-08 23:48:38 +0000
commit9da2083403ee24c7a4ab50041eab70e5b0e4b30a (patch)
treea15aefa306f792559a25cb21ee3535683e3cbe41 /bfd/coff-tic80.c
parentc23a64651488ed4a461e407a6b886692a07abb5f (diff)
downloadgdb-9da2083403ee24c7a4ab50041eab70e5b0e4b30a.tar.gz
2005-05-08 Dave Korn <dave.korn@artimi.com>
* coff-tic80.c: Undefine _CONST after system headers to prevent clash with tic80-specific definition in include/coff/tic80.h
Diffstat (limited to 'bfd/coff-tic80.c')
-rw-r--r--bfd/coff-tic80.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/coff-tic80.c b/bfd/coff-tic80.c
index 3c089648241..ec9cbeef59a 100644
--- a/bfd/coff-tic80.c
+++ b/bfd/coff-tic80.c
@@ -28,6 +28,14 @@ Boston, MA 02110-1301, USA. */
#include "bfdlink.h"
#include "sysdep.h"
#include "libbfd.h"
+#ifdef _CONST
+/* Newlib-based hosts define _CONST as a STDC-safe alias for const,
+ but to the tic80 toolchain it means something altogether different.
+ Since sysdep.h will have pulled in stdio.h and hence _ansi.h which
+ contains this definition, we must undef it before including the
+ tic80-specific definition. */
+#undef _CONST
+#endif /* _CONST */
#include "coff/tic80.h"
#include "coff/internal.h"
#include "libcoff.h"