Boost logo

Boost :

Subject: Re: [boost] [config] missing BOOST_HAS_STDINT_H for PGI
From: John Maddock (boost.regex_at_[hidden])
Date: 2012-03-22 12:45:02


> ticket: 6724
>
> boost/config/compilers/pgi.h does not define BOOST_HAS_STDINT_H ->
> boost/cstdint.hpp does not include stdint.h

I don't remember the details, but there are problems including stdint.h on
Linux when the compiler is not (pretending to be) GCC, the comment in
linux.hpp is:

#if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) &&
(__GLIBC_MINOR__ >= 1)))
   // <stdint.h> defines int64_t unconditionally, but <sys/types.h> defines
   // int64_t only if __GNUC__. Thus, assume a fully usable <stdint.h>
   // only when using GCC.
# if defined __GNUC__
# define BOOST_HAS_STDINT_H
# endif
#endif

John.


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