Commit 4f1817ee by Manfred Hollstein

fix-header.c (enum special_file): Undefine enumerators if they are already…

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
parent 49fb8382
...@@ -127,9 +127,21 @@ char *inf_ptr; ...@@ -127,9 +127,21 @@ char *inf_ptr;
enum special_file enum special_file
{ {
no_special, no_special,
#ifdef errno_h
#undef errno_h
#endif
errno_h, errno_h,
#ifdef stdio_h
#undef stdio_h
#endif
stdio_h, stdio_h,
#ifdef stdlib_h
#undef stdlib_h
#endif
stdlib_h, stdlib_h,
#ifdef sys_stat_h
#undef sys_stat_h
#endif
sys_stat_h sys_stat_h
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment