[LLVMbugs] [Bug 7068] New: clang stddef.h does not define wint_t

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 6 03:27:01 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7068

           Summary: clang stddef.h does not define wint_t
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Headers
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu


In g++ 4.4.3 (possibly earlier):

The code:

'#include <wctype.h>' fails on clang, as stddef.h defines (via a series of
macros and ifdefs):

typedef unsigned int wint_t;

On the other hand

#include <wchar.h>
#include <wctype.h>

works correctly on both compilers, as wchar.h defines wint_t if it is not
otherwise defined.

This blocks some boost files when using g++ 4.4.3 as the underlying compiler.

-- 
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