Message-ID: <002001c08df0$71991860$2a4a893e@oemcomputer> From: "Stephen Silver" To: Subject: Re: WCHAR_* and WINT_* in limits.h Date: Sat, 3 Feb 2001 14:48:57 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp-workers AT delorie DOT com Eli Zaretskii wrote: > Since wchar_t is short and wint_t is int, aren't these bugs? > > #define WCHAR_MIN 0 > #define WCHAR_MAX 127 > #define WINT_MIN 0 > #define WINT_MAX 32767 Yes, these are wrong. But surely they shouldn't be in limits.h anyway (at least with __STRICT_ANSI__ defined). As far as I know, the WCHAR_M* macros are supposed to be only in wchar.h and stdint.h, and the WINT_M* macros only in stdint.h. At the moment, DJGPP's wchar.h doesn't define WCHAR_MIN or WCHAR_MAX. Stephen