This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question about creating stdint.h on systems that don't have it
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc at gcc dot gnu dot org
- Cc: joseph at codesourcery dot com, dave at hiauly1 dot hia dot nrc dot ca
- Date: Tue, 14 Apr 2009 08:37:05 -0700 (PDT)
- Subject: Question about creating stdint.h on systems that don't have it
I am working on the c99 stdint.h support for HP-UX. On HP-UX 11.23 and
11.31 where stdint.h exists I am setting use_gcc_stdint to "wrap" and
adding some hacks to inclhack.def and that seems to be working.
On HP-UX 11.11 there is no stdint.h but I think we want to provide one.
I tried setting use_gcc_stdint to "provide" but that doesn't work
because HP-UX 11.11 already has typedefs in other header files for some
of the things the GCC provided stdint.h wants to typedef like
int8_fast_t.
I believe I want to create my own stdint.h header file, one that looks
more like the HP-UX 11.23 one than the GCC provided one, but I am not
sure how to do that. I don't see any examples in inclhack.def of
providing a header file that doesn't exist, only cases of changing or
completely replacing existing header files.
Is there a standard way of having GCC provide a new header file
for a given platform?
Steve Ellcey
sje@cup.hp.com