[goffice] dtoa: fix win32 build.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] dtoa: fix win32 build.
- Date: Thu, 10 Apr 2014 22:28:10 +0000 (UTC)
commit f520c922c48683079051bd22cab62c570495d27d
Author: Morten Welinder <terra gnome org>
Date: Thu Apr 10 18:27:23 2014 -0400
dtoa: fix win32 build.
ChangeLog | 4 ++++
goffice/math/go-dtoa.c | 5 +++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index df8d443..45d9b29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2014-04-10 Morten Welinder <terra gnome org>
+ * goffice/math/go-dtoa.c: When building with
+ !GOFFICE_WITH_LONG_DOUBLE, don't use go_finitel. Just assume we
+ have isfinite.
+
* goffice/canvas/goc-item.c (cb_hierarchy_changed): Renamed from
cb_parent_changed.
(goc_item_get_style_context): Also watch ::canvas.
diff --git a/goffice/math/go-dtoa.c b/goffice/math/go-dtoa.c
index 96c352e..e44af34 100644
--- a/goffice/math/go-dtoa.c
+++ b/goffice/math/go-dtoa.c
@@ -39,6 +39,11 @@
typedef GString FAKE_FILE;
+#ifndef GOFFICE_WITH_LONG_DOUBLE
+#define go_finitel isfinite
+#endif
+
+
/* musl code starts here */
/* Some useful macros */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]