Boost logo

Boost :

From: Thomas Matelich (sosedada_at_[hidden])
Date: 2000-09-25 09:51:47


Since discussions are going on regarding stdint again, I wanted to re-bring up
that fact that HPUX has the basic stdint.h types defined in it. I will quote
my message from April regarding this subject in hopes that maybe someone will
think this worth dealing with.

I wrote:

     In porting some of my code to HP-UX 10.20, I discovered
     <sys/_inttypes.h>. This file appears to get included at some point
     by
     limits.h or perhaps by the compiler (gcc 2.95.2). In any case,
     _inttypes has all the typedefs that would be in stdint.h. So I've
     added
     the following code to config.hpp:

     // begin platform specific portion
     ------------------------------------------//
     # if hpux
     # define BOOST_SYSTEM_HAS__INTTYPES_H
     # endif //HPUX

     // end of platform specific portion
     -----------------------------------------//

     and changed boost/stdint.h like so:

     #ifdef BOOST_SYSTEM_HAS_STDINT_H
     #include <stdint.h>

     #elif defined BOOST_SYSTEM_HAS__INTTYPES_H
     #include <sys/_inttypes.h>

     #else
     .
     .
     .

     My other thought was that we could make a macro to represent the
     include
     for the file with the typedefs we're looking for?

--
Thomas O Matelich
Senior Software Designer
Zetec, Inc.
sosedada_at_[hidden]
tmatelich_at_[hidden]

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk