Commit f98e603e by Jason Merrill

cccp.c (special_symbol, [...]): Output "__wchar_t" for C++.

        * cccp.c (special_symbol, case T_WCHAR_TYPE): Output "__wchar_t"
        for C++.

From-SVN: r6959
parent 4563275a
......@@ -3820,8 +3820,15 @@ special_symbol (hp, op)
#endif
case T_WCHAR_TYPE:
buf = (char *) alloca (3 + strlen (WCHAR_TYPE));
sprintf (buf, "%s", WCHAR_TYPE);
/* In C++, wchar_t is a distinct basic type, and we can expect
__wchar_t to be defined by cc1plus. */
if (cplusplus)
buf = "__wchar_t";
else
{
buf = (char *) alloca (3 + strlen (WCHAR_TYPE));
sprintf (buf, "%s", WCHAR_TYPE);
}
break;
case T_USER_LABEL_PREFIX_TYPE:
......
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