Commit 7309576c by Nathanael Nerode

inclhack.def (ptx_pwd_h): New disabled fix, ported from fixinc.ptx.

	* fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
	from fixinc.ptx.

From-SVN: r70830
parent 777bb1d4
2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
* fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
from fixinc.ptx.
* fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
ported from fixinc.ptx.
......
......@@ -2002,6 +2002,30 @@ fix = {
/*
* In pwd.h, PTX 1.x needs stdio.h included since FILE * was added in a
* prototype later on in the file. (It's not clear that this is
* still true, and even if it is, FILE * may be added after this fix runs by
* fixproto.)
*/
#ifdef PTX
fix = {
hackname = ptx_pwd_h;
files = pwd.h;
select = 'FILE \*';
bypass = 'stdio.h';
sed = "/#include <sys\\/types\\.h/a\\\n"
"\\\n"
"#if defined(__STDC__) || defined(__cplusplus)\\\n"
"#include <stdio.h>\\\n"
"#endif /* __STDC__ */\\\n"
"\n";
test_text = "#include <sys/types.h>\n"
"void foo (FILE *)";
};
#endif
/*
* On DYNIX/ptx, sys/mc_param.h has an embedded asm for the cpuid instruction
* on the P5. This is not used by anything else so we ifdef it out.
* Current GCC doesn't seem to complain about the asm, though.
......
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