This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question about creating stdint.h on systems that don't have it
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: joseph at codesourcery dot com (Joseph S. Myers)
- Cc: sje at cup dot hp dot com, gcc at gcc dot gnu dot org
- Date: Tue, 14 Apr 2009 12:18:35 -0400 (EDT)
- Subject: Re: Question about creating stdint.h on systems that don't have it
I have a patch to provide stdint.h on HP-UX that I have been testing.
I have resolved the consistency issues with inttypes.h although there
are some slightly wierd aspects. For example, I found "signed char" and
"char" are inconsistent, yet characters are signed. The specification
of some types differs from that in inttypes.h for some types but gcc
doesn't object. For example, I specify "long long int" instead of just
"long long".
I have to define __STDC_EXT__ under all circumstances to get consistency
of the long long types in the 32-bit runtime. Previously, gcc for hpux
tried to mirror the behavior of the HP C compiler wrt long long types.
I think the patch chould work for most HP-UX versions except perhaps
11.31 and later. These systems may provide stdint.h. I don't have
access to a machine with 11.31 or later.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)