This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The default wint_t is "unsigned int", but VxWorks RTPs use "unsigned short" instead (as they do for wchar_t). The kernel headers don't provide a wchar.h header, so there are no compatiblity issues there.
For context, the preceding code is:
/* VxWorks uses wchar_t == unsigned short (UCS2) on all architectures. */ #undef WCHAR_TYPE #define WCHAR_TYPE "short unsigned int" #undef WCHAR_TYPE_SIZE #define WCHAR_TYPE_SIZE 16
Tested on i586-wrs-vxworks, where it fixes gcc.dg/wint_t-1.c. Ok to install?
-- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |