Subject: Re: SIZE_T_MAX Problem
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: current-users
Date: 08/16/2003 17:12:37
In article <1061048638.3f3e513e46cec@lola.Pin.LU>,
Christian Limpach <chris@pin.lu> wrote:

Thanks, I did not realize he was using linux. Nevertheless, shouldn't the
build process use our own header files at this point?

christos

>
>not on Linux, which is where the original poster wants to build.sh.  Linux 
>has in /usr/include/stdint.h:
>/* Limit of `size_t' type.  */
># if __WORDSIZE == 64
>#  define SIZE_MAX              (18446744073709551615UL)
># else
>#  define SIZE_MAX              (4294967295U)
># endif
>
>I have:
>#if !defined(SIZE_T_MAX) && defined(SIZE_MAX)
>#define SIZE_T_MAX SIZE_MAX
>#endif
>in my cat.c or compat_defs.h but maybe it should be named SIZE_MAX anyway 
>(cf. UINT32_MAX, U?QUAD_MAX, ...)
>
>-- 
>Christian Limpach <chris@pin.lu>
>