Build failure on sysv5uw7.1.0: wchar_t typedefs in headers.

Roger Collins roger@proproject.com
Wed Jan 24 10:09:00 GMT 2001


Found this in gcc/fixinc/inclhack.def.  Wonder why this did this not fix
the problem?

/*
 *  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";

    test_text = "typedef unsigned short\twchar_t \t; /* wchar_t\n type
*/";
};

Roger Collins wrote:

> Porting to Unixware 2.1, I encountered the same problem.  What did you
> do to fix it?
>
> Roger



More information about the Libstdc++ mailing list