Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52522 - trunk/boost/math/special_functions
From: john_at_[hidden]
Date: 2009-04-21 04:43:37


Author: johnmaddock
Date: 2009-04-21 04:43:36 EDT (Tue, 21 Apr 2009)
New Revision: 52522
URL: http://svn.boost.org/trac/boost/changeset/52522

Log:
Fix for no long double math functions.
Text files modified:
   trunk/boost/math/special_functions/expm1.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/boost/math/special_functions/expm1.hpp
==============================================================================
--- trunk/boost/math/special_functions/expm1.hpp (original)
+++ trunk/boost/math/special_functions/expm1.hpp 2009-04-21 04:43:36 EDT (Tue, 21 Apr 2009)
@@ -267,10 +267,12 @@
 #if defined(BOOST_HAS_EXPM1) && !(defined(__osf__) && defined(__DECCXX_VER))
 # ifdef BOOST_MATH_USE_C99
 inline float expm1(float x, const policies::policy<>&){ return ::expm1f(x); }
+# ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
 inline long double expm1(long double x, const policies::policy<>&){ return ::expm1l(x); }
-#else
+# endif
+# else
 inline float expm1(float x, const policies::policy<>&){ return ::expm1(x); }
-#endif
+# endif
 inline double expm1(double x, const policies::policy<>&){ return ::expm1(x); }
 #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