[cfe-commits] r105985 - /cfe/trunk/lib/Headers/stddef.h

Zhongxing Xu xuzhongxing at gmail.com
Tue Jul 27 22:58:21 PDT 2010


On Tue, Jun 15, 2010 at 10:29 PM, Daniel Dunbar <daniel at zuster.org> wrote:
> On Mon, Jun 14, 2010 at 7:36 PM, Sean Hunt <rideau3 at gmail.com> wrote:
>> Author: coppro
>> Date: Mon Jun 14 21:36:48 2010
>> New Revision: 105985
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=105985&view=rev
>> Log:
>> MinGW requires that wint_t be defined in stddef.h. In order to accomodate, we
>> won't define it unless specifically requested via the use of __need_wint_t.
>
> Who is setting __need_wint_t? I'm not really sure this is something
> that belongs in our stddef.h.
>

\cygwin\usr\include\sys\_types.h:

#define __need_wint_t
#include <stddef.h>

#ifndef __mbstate_t_defined
/* Conversion state information.  */
typedef struct
{
  int __count;
  union
  {
    wint_t __wch;
    unsigned char __wchb[4];
  } __value;		/* Value so far.  */
} _mbstate_t;
#endif



More information about the cfe-commits mailing list