summaryrefslogtreecommitdiff
path: root/textproc/libmwaw/files/0001-std-isfinite-is-C-11.patch
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-06-11 14:40:31 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-06-11 14:40:31 +0000
commit6366b4495a3d0ec40ad67452951806c3e97d58ab (patch)
tree29abc9b786d2bcc7f2250eaf5df54d2041d85ebb /textproc/libmwaw/files/0001-std-isfinite-is-C-11.patch
parentUpdate to icu 53.1, recommand to the user to rebuild all their applications d... (diff)
Update to libreoffice 4.2.4
- Speed staging phase by really installing to the stagedir directly - Rework to use predefined targets for build and install - Strip binaries - Remove now unnecessary dependencies on autotools - Add patches to fix crashes with icu 53.1
Diffstat (limited to 'textproc/libmwaw/files/0001-std-isfinite-is-C-11.patch')
-rw-r--r--textproc/libmwaw/files/0001-std-isfinite-is-C-11.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/textproc/libmwaw/files/0001-std-isfinite-is-C-11.patch b/textproc/libmwaw/files/0001-std-isfinite-is-C-11.patch
new file mode 100644
index 000000000000..73fde5ae0387
--- /dev/null
+++ b/textproc/libmwaw/files/0001-std-isfinite-is-C-11.patch
@@ -0,0 +1,43 @@
+From 5da59d9aa9298136d447e4014aef207f00cdc82b Mon Sep 17 00:00:00 2001
+From: David Tardon <dtardon@redhat.com>
+Date: Sun, 3 Nov 2013 12:26:26 +0100
+Subject: [PATCH] std::isfinite is C++11
+
+---
+ configure.ac | 10 ++++++++++
+ src/lib/CWDbaseContent.cxx | 5 +++--
+ 2 files changed, 13 insertions(+), 2 deletions(-)
+
+diff --git a/src/lib/CWDbaseContent.cxx b/src/lib/CWDbaseContent.cxx
+index f27148d..7198103 100644
+--- a/src/lib/CWDbaseContent.cxx
++++ b/src/lib/CWDbaseContent.cxx
+@@ -33,7 +33,6 @@
+
+ #include <time.h>
+
+-#include <cmath>
+ #include <cstring>
+ #include <ctime>
+ #include <iomanip>
+@@ -41,6 +40,8 @@
+ #include <set>
+ #include <sstream>
+
++#include <boost/math/special_functions/fpclassify.hpp>
++
+ #include <libwpd/libwpd.h>
+
+ #include "MWAWContentListener.hxx"
+@@ -969,7 +970,7 @@ void CWDbaseContent::send(double val, CWStyleManager::CellFormat const &format)
+ if (type>=10&&type<=11) type += 4;
+ else if (type>=14) type=16;
+ }
+- if (type <= 0 || type >=16 || type==10 || type==11 || !std::isfinite(val)) {
++ if (type <= 0 || type >=16 || type==10 || type==11 || !boost::math::isfinite(val)) {
+ s << val;
+ listener->insertUnicodeString(s.str().c_str());
+ return;
+--
+1.8.3.1
+