From 1bb53f1878a3a81e752e89bfc04f2e3572de892d Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sun, 21 Mar 1993 18:59:13 +0000 Subject: [PATCH] [VAXC]: Work around stdio.h's FILE_TYPE. From-SVN: r3812 --- gcc/config/vax/xm-vms.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gcc/config/vax/xm-vms.h b/gcc/config/vax/xm-vms.h index 1629da7..98a728a 100644 --- a/gcc/config/vax/xm-vms.h +++ b/gcc/config/vax/xm-vms.h @@ -21,6 +21,19 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define FALSE 0 #define TRUE 1 +#ifdef VAXC +/* if compiling with VAXC, need to fix problem with + which defines a macro called FILE_TYPE that breaks "tree.h". + Fortunately it uses #ifndef to suppress multiple inclusions. + Three possible cases: + 1) has already been included -- ours will be no-op; + 2) will be included after us -- "theirs" will be no-op; + 3) isn't needed -- including it here shouldn't hurt. + In all three cases, the problem macro will be removed here. */ +#include +#undef FILE_TYPE +#endif + /* target machine dependencies. tm.h is a symbolic link to the actual target specific file. */ #include "tm.h" -- 2.7.4