]> gcc.gnu.org Git - gcc.git/commitdiff
fix-header.c (enum special_file): Undefine enumerators if they are already defined...
authorManfred Hollstein <manfred@gcc.gnu.org>
Sun, 19 Apr 1998 06:48:07 +0000 (06:48 +0000)
committerManfred Hollstein <manfred@gcc.gnu.org>
Sun, 19 Apr 1998 06:48:07 +0000 (06:48 +0000)
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

index f6cc5e8d6d974e2e937466a106f3e454826a32d6..979cde3fb544c3e3d5bfa58c9aaeff0349dab79d 100644 (file)
@@ -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
 };
 
This page took 0.06199 seconds and 5 git commands to generate.