Subject: Re: SIZE_T_MAX Problem
To: Christos Zoulas <christos@zoulas.com>
From: Christian Limpach <chris@pin.lu>
List: current-users
Date: 08/16/2003 17:43:58
Quoting Christos Zoulas <christos@zoulas.com>:
> Jason Hecker <jhecker@wireless.org.au> wrote:

> It should be defined in /usr/include/powerpc/limits.h on the ppc case.
> Is that directory/file there?

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>