Subject: Re: CVS commit: xsrc
To: None <source-changes@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-x11
Date: 08/31/2003 12:43:38
On Sun, Aug 31, 2003 at 10:34:18 +0200, Matthias Scheler wrote:

> > > On operating systems which don't define "SIZE_T_MAX" (NetBSD does) define
> > > it to "ULONG_MAX" if possible. This should avoid problems on non-NetBSD
> > > 64Bit platforms (e.g. Solaris). Based on a suggestion made by
> > > Christoph Egger in private e-mail.
> > Shouldn't it check for SIZE_MAX first?
> 
> I guess there are thousand of flavours of this definition.

But SIZE_MAX is C99.  In our src tree we prefer SIZE_MAX to SIZE_T_MAX
(we have both, but SIZE_T_MAX seems to be BSD'ism).


> > IIRC, that's what FreeBSD has.

No, FreeBSD 4.8 has SIZE_T_MAX, but no SIZE_MAX.


> And Solaris doesn't have it.

My 5.8 certainly does have SIZE_MAX in limits.h (though c99 says it
should be in stdint.h, but there's no such header on solaris 5.8)

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen