------- Comment #15 from paolo dot carlini at oracle dot com 2010-06-07 15:23 ------- Johannes, can you try the patch and in case, give me some details about the remaining issues? The idea is simply that if a glibc header has been included by <cwctype> before <wctype.h>, then __GLIBC__ is defined and __GLIBC_MINOR__ set to the proper value. If the minor is < 10, thus <wctype.h> is buggy, we include by hand <stddef.h> *before* <wctype.h>. It should work. Unless the library is somehow including <wctype.h> somewhere else outside <cwctype>. That should be also fixed.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44417