[cfe-commits] [PATCH] 7571: stddef.h and wint_t
jay.foad at gmail.com
Fri Jul 9 01:10:12 PDT 2010
On Ubuntu I get:
$ cat c.c
$ clang -c c.c
In file included from c.c:2:
/usr/include/wctype.h:112:22: error: unknown type name 'wint_t'
extern int iswalnum (wint_t __wc) __THROW;
The problem is that Clang's stddef.h only defines win_t if
__need_wint_t is defined the *first* time stddef.h is included.
Glibc's wctype.h does this:
/* Get wint_t from <stddef.h>. */
# define __need_wint_t
# include <stddef.h>
but that doesn't work if stddef.h has been included previously.
I've attached a suggested fix.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 648 bytes
Desc: not available
More information about the cfe-commits