Boost logo

Boost :

From: Thomas Matelich (sosedada_at_[hidden])
Date: 2000-04-07 15:43:09


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? I don't know that
much about macros, but it seems possible.

ttfn

--
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