2005-05-08 Dave Korn <dave.korn@artimi.com>
authorDave Korn <dave.korn@artimi.com>
Sun, 8 May 2005 23:48:38 +0000 (23:48 +0000)
committerDave Korn <dave.korn@artimi.com>
Sun, 8 May 2005 23:48:38 +0000 (23:48 +0000)
* coff-tic80.c:  Undefine _CONST after system headers to prevent
clash with tic80-specific definition in include/coff/tic80.h

bfd/ChangeLog
bfd/coff-tic80.c

index ee4797d349235d3bfecf8be42aa9b392af180c9a..8563a0f97dbdf3c923aec48df4d5d8dff85166b9 100644 (file)
@@ -1,3 +1,8 @@
+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
+
 2005-05-08  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR 939
index 3c08964824172c30af201da3de671f45edfd456a..ec9cbeef59aaff4ea305ad8699bd2df812514411 100644 (file)
@@ -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"
This page took 0.027895 seconds and 4 git commands to generate.