[LLVMbugs] [Bug 7571] New: wctype.h: unknown type name 'wint_t'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 6 01:38:43 PDT 2010


           Summary: wctype.h: unknown type name 'wint_t'
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Headers
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jay.foad at gmail.com
                CC: llvmbugs at cs.uiuc.edu

I get:

$ cat c.c
#include <stddef.h>
#include <wctype.h>
$ 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;
/usr/include/wctype.h:118:22: error: unknown type name 'wint_t'
extern int iswalpha (wint_t __wc) __THROW;

Under bug 6691, Clang's stddef.h was fixed to define wint_t if __need_wint_t is
#defined. I think the problem is that that is done inside the "#ifndef
__STDDEF_H ... #endif" that wraps the whole file, so it only works if stddef.h
was never previously included.

I'm using Ubuntu 10.4 x86_64. The system headers come from package libc6-dev
version 2.11.1-0ubuntu7.1.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list