]> gcc.gnu.org Git - gcc.git/commitdiff
[VAXC]: Work around stdio.h's FILE_TYPE.
authorRichard Stallman <rms@gnu.org>
Sun, 21 Mar 1993 18:59:13 +0000 (18:59 +0000)
committerRichard Stallman <rms@gnu.org>
Sun, 21 Mar 1993 18:59:13 +0000 (18:59 +0000)
From-SVN: r3812

gcc/config/vax/xm-vms.h

index 1629da7bd85ea3a3a4c00af63eee1f2829443105..98a728ac411fa657e115da1095fabc6d3145b481 100644 (file)
@@ -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"
This page took 0.062882 seconds and 5 git commands to generate.