X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fwchar.h;h=d8738818c77ffe1e0672ffe9bf49535e63bae06a;hp=35706c7ff7abaf796d047ae13a315a5165105a1e;hb=c79cd27e9e81eb5e223728094f1233ee2fc12dda;hpb=c1a9658bd19245ff0fb52d3da567815d822fb622 diff --git a/include/wchar.h b/include/wchar.h index 35706c7f..d8738818 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -24,15 +24,16 @@ extern "C" { #include -#include - -#undef NULL -#ifdef __cplusplus -#define NULL 0 +#if L'\0'-1 > 0 +#define WCHAR_MAX (0xffffffffu+L'\0') +#define WCHAR_MIN (0+L'\0') #else -#define NULL ((void*)0) +#define WCHAR_MAX (0x7fffffff+L'\0') +#define WCHAR_MIN (-1-0x7fffffff+L'\0') #endif +#define NULL 0L + #undef WEOF #define WEOF (-1)