From 4f1817ee4f8e9ccf661d33523dde9224dd99ed1e Mon Sep 17 00:00:00 2001
From: Manfred Hollstein <manfred@gcc.gnu.org>
Date: Sun, 19 Apr 1998 06:48:07 +0000
Subject: [PATCH] fix-header.c (enum special_file): Undefine enumerators if
 they are already defined by include files.

d
	* fix-header.c (enum special_file): Undefine enumerators if they
	are already defined by include files.
	* fixproto (rel_source_file in unistd.h stdlib.h): Prefix file protection
	macro with '__' to not pollute user namespace.

From-SVN: r19297
---
 gcc/fix-header.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index f6cc5e8d6d97..979cde3fb544 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -127,9 +127,21 @@ char *inf_ptr;
 enum special_file
 {
   no_special,
+#ifdef errno_h
+#undef errno_h
+#endif
   errno_h,
+#ifdef stdio_h
+#undef stdio_h
+#endif
   stdio_h,
+#ifdef stdlib_h
+#undef stdlib_h
+#endif
   stdlib_h,
+#ifdef sys_stat_h
+#undef sys_stat_h
+#endif
   sys_stat_h
 };
 
-- 
GitLab