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
This commit is contained in:
parent
49fb83823e
commit
4f1817ee4f
@ -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
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user