This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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]

Re: [PATCH] Update newlib so that it passes libc++'s tests


> Recent GCC have built-in defines:
>
> #define __WCHAR_TYPE__ long int
> #define __WCHAR_MAX__ 2147483647L
> #define __WCHAR_MIN__ (-__WCHAR_MAX__ - 1)
>
> Maybe we can use them if available.  Does LLVM also provide such built-in
> defines?

My fix uses __WCHAR_MAX__ and __WCHAR_MIN__ if available. Yes, both
GCC and LLVM have them (rather, LLVM has __WCHAR_MAX__,
__WCHAR_TYPE__, __WCHAR_WIDTH__ and __WCHAR_UNSIGNED__, and its
stdint.h has WCHAR_MAX and WCHAR_MIN definitions based on these).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]