Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62194 - trunk/boost/test/impl
From: john_at_[hidden]
Date: 2010-05-25 07:23:35


Author: johnmaddock
Date: 2010-05-25 07:23:34 EDT (Tue, 25 May 2010)
New Revision: 62194
URL: http://svn.boost.org/trac/boost/changeset/62194

Log:
Fix unconditional use of non-standard glibc specific functions.
Text files modified:
   trunk/boost/test/impl/execution_monitor.ipp | 16 ++++++++--------
   1 files changed, 8 insertions(+), 8 deletions(-)

Modified: trunk/boost/test/impl/execution_monitor.ipp
==============================================================================
--- trunk/boost/test/impl/execution_monitor.ipp (original)
+++ trunk/boost/test/impl/execution_monitor.ipp 2010-05-25 07:23:34 EDT (Tue, 25 May 2010)
@@ -1320,13 +1320,13 @@
                 return BOOST_FPE_INV;
 
         return ~old_cw & BOOST_FPE_ALL;
-#elif defined(__CYGWIN__) || defined(__APPLE__)
- /* Not Implemented in cygwin or apple */
- return 0;
-#else
+#elif defined(__GLIBC__) && defined(__USE_GNU)
     ::feclearexcept(BOOST_FPE_ALL);
         int res = ::feenableexcept( mask );
         return res == -1 ? BOOST_FPE_INV : (unsigned)res;
+#else
+ /* Not Implemented */
+ return 0;
 #endif
 }
 
@@ -1347,13 +1347,13 @@
                 return BOOST_FPE_INV;
 
     return ~old_cw & BOOST_FPE_ALL;
-#elif defined(__CYGWIN__) || defined(__APPLE__)
- /* Not Implemented in cygwin or apple */
- return BOOST_FPE_INV;
-#else
+#elif defined(__GLIBC__) && defined(__USE_GNU)
     ::feclearexcept(BOOST_FPE_ALL);
         int res = ::fedisableexcept( mask );
         return res == -1 ? BOOST_FPE_INV : (unsigned)res;
+#else
+ /* Not Implemented */
+ return BOOST_FPE_INV;
 #endif
 }
 


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