Commit 8b4c8a86 by Mark Mitchell Committed by Mark Mitchell

inclhack.def (avoid_wchar_t_type): New fix.

	* fixinc/inclhack.def (avoid_wchar_t_type): New fix.
	* fininc/fixincl.x: Regenerated.

From-SVN: r37391
parent ac51395d
2000-11-11 Mark Mitchell <mark@codesourcery.com>
* fixinc/inclhack.def (avoid_wchar_t_type): New fix.
* fininc/fixincl.x: Regenerated.
2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
* invoke.texi: Correct spelling of -foptimize-register-move.
......
......@@ -769,6 +769,22 @@ fix = {
test_text = "typedef unsigned int\tbool \t; /* bool type */";
};
/*
* For C++, avoid any typedef definition of wchar_t,
* and use the built in type instead.
*/
fix = {
hackname = avoid_wchar_t_type;
select = "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
c_fix = format;
c_fix_arg = "#ifndef __cplusplus\n%0\n#endif";
c_fix_arg = "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;.*";
test_text = "typedef unsigned short\twchar_t \t; /* wchar_t type */";
};
/*
* Fix #defines under Alpha OSF/1:
......
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