X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fwchar.h;fp=include%2Fwchar.h;h=d8738818c77ffe1e0672ffe9bf49535e63bae06a;hp=9ceddd57550fc60c386cd3f68c438f4271256fd6;hb=c7af2710007865861e789b29e803f0f55deba93f;hpb=201995f382cc698ae19289623cc06a70048ffe7b diff --git a/include/wchar.h b/include/wchar.h index 9ceddd57..d8738818 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -24,7 +24,13 @@ extern "C" { #include -#include +#if L'\0'-1 > 0 +#define WCHAR_MAX (0xffffffffu+L'\0') +#define WCHAR_MIN (0+L'\0') +#else +#define WCHAR_MAX (0x7fffffff+L'\0') +#define WCHAR_MIN (-1-0x7fffffff+L'\0') +#endif #define NULL 0L