summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRene Engelhard <rene@debian.org>2018-12-08 13:49:52 +0100
committerRene Engelhard <rene@debian.org>2018-12-08 13:49:52 +0100
commit045f141bfcac40388d04e7ad831f57178d04e080 (patch)
tree9838c4db95958baffd86b61a628e2018887b5e5f /tools
parentab9b67bbb001f380b3973941443bfbc59fe7141c (diff)
don't use deprecated boost/math/common_factor_rt.hpp
In file included from /data/rene/git/LibreOffice/master/tools/source/generic/fract.cxx:33: /usr/include/boost/math/common_factor_rt.hpp:13:63: note: #pragma message: This header is deprecated. Use <boost/integer/common_factor_rt.hpp> instead. BOOST_HEADER_DEPRECATED("<boost/integer/common_factor_rt.hpp>"); the BOOST_HEADER_DEPRECATED(..) was done in boost 1.67 so make it conditional on that one. Change-Id: I10cb0e4c25e1fa1497dea35c0fc3e5e719142123
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/fract.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/source/generic/fract.cxx b/tools/source/generic/fract.cxx
index d50cffc990aa..b9334941bc89 100644
--- a/tools/source/generic/fract.cxx
+++ b/tools/source/generic/fract.cxx
@@ -30,7 +30,11 @@
#include <algorithm>
#include <cmath>
+#if BOOST_VERSION >= 106700
+#include <boost/integer/common_factor_rt.hpp>
+#else
#include <boost/math/common_factor_rt.hpp>
+#endif
#include <boost/rational.hpp>
static boost::rational<sal_Int32> rational_FromDouble(double dVal);