From 08bc1653e0c692d516868f8b7a6381ccc76b03c3 Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Tue, 25 Sep 2001 20:01:37 +0000 Subject: [PATCH] Linux doesn't have a completely useful in all cases [SVN r11261] --- include/boost/config/platform/linux.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/boost/config/platform/linux.hpp b/include/boost/config/platform/linux.hpp index e3789b1d..774b37f9 100644 --- a/include/boost/config/platform/linux.hpp +++ b/include/boost/config/platform/linux.hpp @@ -13,17 +13,22 @@ #include // -// stdint.h added to glibc 2.1.1 +// added to glibc 2.1.1 // We can only test for 2.1 though: // #if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1))) -#define BOOST_HAS_STDINT_H + // defines int64_t unconditionally, but defines + // int64_t only if __GNUC__. Thus, assume a fully usable + // only when using GCC. +# if defined __GNUC__ +# define BOOST_HAS_STDINT_H +# endif #endif #if defined(__GLIBC__) && defined(__GLIBC_PREREQ) // __GLIBC_PREREQ is available since 2.1.2 - // swprintf added to glibc 2.2.0 + // swprintf is available since glibc 2.2.0 # if !__GLIBC_PREREQ(2,2) || (!defined(__USE_ISOC99) && !defined(__USE_UNIX98)) # define BOOST_NO_SWPRINTF # endif