Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57858 - trunk/boost
From: john_at_[hidden]
Date: 2009-11-23 04:51:26


Author: johnmaddock
Date: 2009-11-23 04:51:23 EST (Mon, 23 Nov 2009)
New Revision: 57858
URL: http://svn.boost.org/trac/boost/changeset/57858

Log:
Fix for Comeau compiler - does not define __GLIBC_HAVE_LONG_LONG which in turn causes GLIBC's stdint.h to misbehave.
Fixes #3548.
Text files modified:
   trunk/boost/cstdint.hpp | 9 +++++++--
   1 files changed, 7 insertions(+), 2 deletions(-)

Modified: trunk/boost/cstdint.hpp
==============================================================================
--- trunk/boost/cstdint.hpp (original)
+++ trunk/boost/cstdint.hpp 2009-11-23 04:51:23 EST (Mon, 23 Nov 2009)
@@ -25,8 +25,13 @@
 
 #include <boost/config.hpp>
 
-
-#ifdef BOOST_HAS_STDINT_H
+//
+// Note that GLIBC is a bit inconsistent about whether int64_t is defined or not
+// depending upon what headers happen to have been included first...
+// so we disable use of stdint.h when GLIBC does not define __GLIBC_HAVE_LONG_LONG.
+// See https://svn.boost.org/trac/boost/ticket/3548 and http://sources.redhat.com/bugzilla/show_bug.cgi?id=10990
+//
+#if defined(BOOST_HAS_STDINT_H) && (!defined(__GLIBC__) || defined(__GLIBC_HAVE_LONG_LONG))
 
 // The following #include is an implementation artifact; not part of interface.
 # ifdef __hpux


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk