[goffice] Compilation: only define go_complexl when GOFFICE_WITH_LONG_DOUBLE.



commit 71f3e4e7d0f09e8ecc378bb2eeba9b6d62c79fef
Author: Morten Welinder <terra gnome org>
Date:   Sun May 22 18:24:50 2011 -0400

    Compilation: only define go_complexl when GOFFICE_WITH_LONG_DOUBLE.

 ChangeLog                 |    5 +++++
 NEWS                      |    3 +++
 goffice/math/go-complex.h |    2 ++
 3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c894c23..a3a2e70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-22  Morten Welinder  <terra gnome org>
+
+	* goffice/math/go-complex.h (go_complexl): Only defined when
+	GOFFICE_WITH_LONG_DOUBLE.
+
 2011-05-21  Morten Welinder <terra gnome org>
 
 	* configure.in: Post-release bump.
diff --git a/NEWS b/NEWS
index 2c5bf74..88c1554 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
 goffice 0.8.16:
 
+Morten:
+	* Fix long-double compilation issue.
+
 --------------------------------------------------------------------------
 goffice 0.8.15:
 
diff --git a/goffice/math/go-complex.h b/goffice/math/go-complex.h
index 3c4e5e2..1dc372f 100644
--- a/goffice/math/go-complex.h
+++ b/goffice/math/go-complex.h
@@ -9,9 +9,11 @@ typedef struct {
 	double re, im;
 } go_complex;
 
+#ifdef GOFFICE_WITH_LONG_DOUBLE
 typedef struct {
 	long double re, im;
 } go_complexl;
+#endif
 
 #include "go-math.h"
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]