X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fwchar.h;h=d8738818c77ffe1e0672ffe9bf49535e63bae06a;hb=2897bfdd602f3d6a0724bbfdd543e962926b5bbe;hp=9ceddd57550fc60c386cd3f68c438f4271256fd6;hpb=41d7c77d6a2e74294807d35062e4cd1d48ab72d3;p=musl 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