openbsd-ports/devel/boost/patches/patch-boost_math_tools_config_hpp
jasper dae9b3f523 - Remove the now unnecessary patches now the that wide character
support has been integrated
  - Move the endian setting bits within endian.hpp header up above
    Boost's own set of checks to try and guess the endianness of
      the architecture so that the OpenBSD endian header is actually
	used
	- Sync the Boost.Math patch for enabling the long double support
	  on OpenBSD/hppa with what was submitted upstream and commited.

tested by aja@ and naddy@
	  from brad
	  ok aja@
2011-11-02 11:54:15 +00:00

13 lines
619 B
Plaintext

$OpenBSD: patch-boost_math_tools_config_hpp,v 1.2 2011/11/02 11:54:15 jasper Exp $
--- boost/math/tools/config.hpp.orig Mon Oct 12 06:35:20 2009
+++ boost/math/tools/config.hpp Mon Oct 17 01:15:58 2011
@@ -24,7 +24,7 @@
#include <boost/math/special_functions/detail/round_fwd.hpp>
#if defined(__CYGWIN__) || defined(__FreeBSD__) || defined(__NetBSD__) \
- || defined(__hppa) || defined(__NO_LONG_DOUBLE_MATH)
+ || (defined(__hppa) && !defined(__OpenBSD__)) || defined(__NO_LONG_DOUBLE_MATH)
# define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
#endif
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))