aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/vax
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-03-21 18:59:13 +0000
committerRichard Stallman <rms@gnu.org>1993-03-21 18:59:13 +0000
commit1bb53f1878a3a81e752e89bfc04f2e3572de892d (patch)
treebbdfc312979731c5b1b9c5bb34d4aa00a6002397 /gcc/config/vax
parent1bb8e5b1b8ec498ddedf50e9d6edd814b324d061 (diff)
downloadgcc-1bb53f1878a3a81e752e89bfc04f2e3572de892d.zip
gcc-1bb53f1878a3a81e752e89bfc04f2e3572de892d.tar.gz
gcc-1bb53f1878a3a81e752e89bfc04f2e3572de892d.tar.bz2
[VAXC]: Work around stdio.h's FILE_TYPE.
From-SVN: r3812
Diffstat (limited to 'gcc/config/vax')
-rw-r--r--gcc/config/vax/xm-vms.h13
1 files changed, 13 insertions, 0 deletions
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 <stdio.h>
+ which defines a macro called FILE_TYPE that breaks "tree.h".
+ Fortunately it uses #ifndef to suppress multiple inclusions.
+ Three possible cases:
+ 1) <stdio.h> has already been included -- ours will be no-op;
+ 2) <stdio.h> will be included after us -- "theirs" will be no-op;
+ 3) <stdio.h> isn't needed -- including it here shouldn't hurt.
+ In all three cases, the problem macro will be removed here. */
+#include <stdio.h>
+#undef FILE_TYPE
+#endif
+
/* target machine dependencies.
tm.h is a symbolic link to the actual target specific file. */
#include "tm.h"