Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70700 - trunk/boost/random/detail
From: steven_at_[hidden]
Date: 2011-03-29 12:03:19


Author: steven_watanabe
Date: 2011-03-29 12:03:19 EDT (Tue, 29 Mar 2011)
New Revision: 70700
URL: http://svn.boost.org/trac/boost/changeset/70700

Log:
Fix for gcc 3.4.6
Text files modified:
   trunk/boost/random/detail/integer_log2.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/random/detail/integer_log2.hpp
==============================================================================
--- trunk/boost/random/detail/integer_log2.hpp (original)
+++ trunk/boost/random/detail/integer_log2.hpp 2011-03-29 12:03:19 EDT (Tue, 29 Mar 2011)
@@ -26,7 +26,7 @@
 #define BOOST_RANDOM_DETAIL_CONSTEXPR constexpr
 #elif defined(BOOST_MSVC)
 #define BOOST_RANDOM_DETAIL_CONSTEXPR __forceinline
-#elif defined(__GNUC__)
+#elif defined(__GNUC__) && __GNUC__ >= 4
 #define BOOST_RANDOM_DETAIL_CONSTEXPR __attribute__((const)) __attribute__((always_inline))
 #else
 #define BOOST_RANDOM_DETAIL_CONSTEXPR inline


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