Blame SOURCES/0001-std-isfinite-is-C-11.patch
|
|
b5c349 |
From 5da59d9aa9298136d447e4014aef207f00cdc82b Mon Sep 17 00:00:00 2001
|
|
|
b5c349 |
From: David Tardon <dtardon@redhat.com>
|
|
|
b5c349 |
Date: Sun, 3 Nov 2013 12:26:26 +0100
|
|
|
b5c349 |
Subject: [PATCH 1/8] std::isfinite is C++11
|
|
|
b5c349 |
|
|
|
b5c349 |
---
|
|
|
b5c349 |
configure.ac | 10 ++++++++++
|
|
|
b5c349 |
src/lib/CWDbaseContent.cxx | 5 +++--
|
|
|
b5c349 |
2 files changed, 13 insertions(+), 2 deletions(-)
|
|
|
b5c349 |
|
|
|
b5c349 |
diff --git a/src/lib/CWDbaseContent.cxx b/src/lib/CWDbaseContent.cxx
|
|
|
b5c349 |
index f27148d..7198103 100644
|
|
|
b5c349 |
--- a/src/lib/CWDbaseContent.cxx
|
|
|
b5c349 |
+++ b/src/lib/CWDbaseContent.cxx
|
|
|
b5c349 |
@@ -33,7 +33,6 @@
|
|
|
b5c349 |
|
|
|
b5c349 |
#include <time.h>
|
|
|
b5c349 |
|
|
|
b5c349 |
-#include <cmath>
|
|
|
b5c349 |
#include <cstring>
|
|
|
b5c349 |
#include <ctime>
|
|
|
b5c349 |
#include <iomanip>
|
|
|
b5c349 |
@@ -41,6 +40,8 @@
|
|
|
b5c349 |
#include <set>
|
|
|
b5c349 |
#include <sstream>
|
|
|
b5c349 |
|
|
|
b5c349 |
+#include <boost/math/special_functions/fpclassify.hpp>
|
|
|
b5c349 |
+
|
|
|
b5c349 |
#include <libwpd/libwpd.h>
|
|
|
b5c349 |
|
|
|
b5c349 |
#include "MWAWContentListener.hxx"
|
|
|
b5c349 |
@@ -969,7 +970,7 @@ void CWDbaseContent::send(double val, CWStyleManager::CellFormat const &format)
|
|
|
b5c349 |
if (type>=10&&type<=11) type += 4;
|
|
|
b5c349 |
else if (type>=14) type=16;
|
|
|
b5c349 |
}
|
|
|
b5c349 |
- if (type <= 0 || type >=16 || type==10 || type==11 || !std::isfinite(val)) {
|
|
|
b5c349 |
+ if (type <= 0 || type >=16 || type==10 || type==11 || !boost::math::isfinite(val)) {
|
|
|
b5c349 |
s << val;
|
|
|
b5c349 |
listener->insertUnicodeString(s.str().c_str());
|
|
|
b5c349 |
return;
|
|
|
b5c349 |
--
|
|
|
b5c349 |
1.9.0
|
|
|
b5c349 |
|