Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81435 - trunk/libs/multiprecision/config
From: john_at_[hidden]
Date: 2012-11-20 07:14:53


Author: johnmaddock
Date: 2012-11-20 07:14:52 EST (Tue, 20 Nov 2012)
New Revision: 81435
URL: http://svn.boost.org/trac/boost/changeset/81435

Log:
Fix configuration tests to correctly print lib version numbers
Text files modified:
   trunk/libs/multiprecision/config/has_gmp.cpp | 5 +++--
   trunk/libs/multiprecision/config/has_mpfr.cpp | 2 +-
   2 files changed, 4 insertions(+), 3 deletions(-)

Modified: trunk/libs/multiprecision/config/has_gmp.cpp
==============================================================================
--- trunk/libs/multiprecision/config/has_gmp.cpp (original)
+++ trunk/libs/multiprecision/config/has_gmp.cpp 2012-11-20 07:14:52 EST (Tue, 20 Nov 2012)
@@ -4,10 +4,11 @@
 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #include <gmp.h>
+#include <boost/config.hpp>
 
 #ifdef __GNUC__
-#pragma message #__GNU_MP_VERSION
-#pragma message #__GNU_MP_VERSION_MINOR
+#pragma message "__GNU_MP_VERSION=" BOOST_STRINGIZE(__GNU_MP_VERSION)
+#pragma message "__GNU_MP_VERSION_MINOR=" BOOST_STRINGIZE(__GNU_MP_VERSION_MINOR)
 #endif
 
 #if (__GNU_MP_VERSION < 4) || ((__GNU_MP_VERSION == 4) && (__GNU_MP_VERSION_MINOR < 2))

Modified: trunk/libs/multiprecision/config/has_mpfr.cpp
==============================================================================
--- trunk/libs/multiprecision/config/has_mpfr.cpp (original)
+++ trunk/libs/multiprecision/config/has_mpfr.cpp 2012-11-20 07:14:52 EST (Tue, 20 Nov 2012)
@@ -6,7 +6,7 @@
 #include <mpfr.h>
 
 #ifdef __GNUC__
-#pragma message MPFR_VERSION_STRING
+#pragma message "MPFR_VERSION_STRING=" MPFR_VERSION_STRING
 #endif
 
 #if (__GNU_MP_VERSION < 4) || ((__GNU_MP_VERSION == 4) && (__GNU_MP_VERSION_MINOR < 2))


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