[GRASS5] compilation HP-UX

Glynn Clements glynn.clements at virgin.net
Wed Jun 13 19:39:15 EDT 2001


Robert Lagacé wrote:

> uint8_t and uint32_t are defined in /usr/include/sys/_inttypes.h where they 
> are defined under __INTTYPES_INCLUDED the following way
> 
> typedef unsigned char uint8_t; 		/* 8-bit unsigned integer */ 
> typedef unsigned int uint32_t;		/* 32-bit unsigned integer */
> 
> So as uint32_t should be defined typedef unsigned int uint32_t as suggested.
> 
> I do not know by which include file _inttypes.h is pick up.
> 
> This solution may work on other systems.

ISO C 9x[1] specifies <stdint.h> for these types. It does state that
"These types need not exist in an implementation", although that's
probably to allow for implementations which don't have any type which
could be used for [u]int64_t.

[1] This is from the 1998-08-03 draft (section 7.18.1.1).

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-dev mailing list