|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53072 - in trunk/boost/test/utils: . runtime
From: steven_at_[hidden]
Date: 2009-05-17 10:20:07
Author: steven_watanabe
Date: 2009-05-17 10:20:06 EDT (Sun, 17 May 2009)
New Revision: 53072
URL: http://svn.boost.org/trac/boost/changeset/53072
Log:
Allow the Boost.Test library to be built with Sun CC
Text files modified:
trunk/boost/test/utils/named_params.hpp | 2 +-
trunk/boost/test/utils/runtime/config.hpp | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
Modified: trunk/boost/test/utils/named_params.hpp
==============================================================================
--- trunk/boost/test/utils/named_params.hpp (original)
+++ trunk/boost/test/utils/named_params.hpp 2009-05-17 10:20:06 EDT (Sun, 17 May 2009)
@@ -66,7 +66,7 @@
struct nil {
template<typename T>
-#if defined(__GNUC__) || defined(__HP_aCC) || defined(__EDG__)
+#if defined(__GNUC__) || defined(__HP_aCC) || defined(__EDG__) || defined(__SUNPRO_CC)
operator T() const
#else
operator T const&() const
Modified: trunk/boost/test/utils/runtime/config.hpp
==============================================================================
--- trunk/boost/test/utils/runtime/config.hpp (original)
+++ trunk/boost/test/utils/runtime/config.hpp 2009-05-17 10:20:06 EDT (Sun, 17 May 2009)
@@ -44,6 +44,10 @@
# endif
#endif
+#ifdef __SUNPRO_CC
+extern int putenv(char*);
+#endif
+
namespace boost {
namespace BOOST_RT_PARAM_NAMESPACE {
@@ -64,7 +68,7 @@
#endif
#ifndef UNDER_CE
-#if defined(__COMO__)
+#if defined(__COMO__) && 0
inline void
putenv_impl( cstring name, cstring value )
{
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