[cfe-dev] Wide character test problem

John Thompson john.thompson.jtsoftware at gmail.com
Wed Oct 28 15:23:39 PDT 2009


Anton,

> 1. What's about mingw?
MinGW inherits the _WIN32 define.

> 2. It's better to conditionalize based on -fshort-wchar option
I'm not sure what you mean by the -fshort-wchar option.  There doesn't seem
to be such an option.  Or do you mean to add one?  Or is there an implicit
define I might use in a conditional?
Alternatively, because this is a platform assumption, we could just delete
the offending line.

-John
On Wed, Oct 28, 2009 at 3:16 PM, Anton Korobeynikov <anton at korobeynikov.info
> wrote:

> Hello, John
>
> > On Windows, the type of wide characters is unsigned short, causing the
> > Sema/wchar.c to fail, which assumes int type.
> > The easiest fix seems to be to conditionalize it, as follows:
> 1. What's about mingw?
> 2. It's better to conditionalize based on -fshort-wchar option
>
> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
>



-- 
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091028/f12981a1/attachment.html>


More information about the cfe-dev mailing list