[goffice] Compilation: work around gtk-doc for --without-long-double builds.



commit 7a4c59faf5f7cb7a1419dc5b26d154f1a8007423
Author: Morten Welinder <terra gnome org>
Date:   Sun Mar 10 16:56:37 2013 -0400

    Compilation: work around gtk-doc for --without-long-double builds.

 ChangeLog                    |    4 ++++
 NEWS                         |    1 +
 goffice/math/go-cspline.c    |    6 ++++++
 goffice/math/go-regression.c |    5 +++++
 4 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7a7a11f..8636da2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2013-03-10  Morten Welinder  <terra gnome org>
 
+       * goffice/math/go-regression.c: Bring a blunt clue bat to the
+       attention of gtk-doc.
+       * goffice/math/go-cspline.c: ditto.
+
        * goffice/math/go-cspline.c (go_csplinel_get_type): Fix reversed
        conditionals.
 
diff --git a/NEWS b/NEWS
index 13b6d3f..fe8429d 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ goffice 0.10.2:
 
 Morten:
        * Fix problems with cspline boxed type. [#695550]
+       * Fix gtk-doc problems --without-long-double.  [#695550]
 
 --------------------------------------------------------------------------
 goffice 0.10.1:
diff --git a/goffice/math/go-cspline.c b/goffice/math/go-cspline.c
index d321847..307f6f7 100644
--- a/goffice/math/go-cspline.c
+++ b/goffice/math/go-cspline.c
@@ -50,6 +50,12 @@
 #define DOUBLE long double
 #define SUFFIX(_n) _n ## l
 #define LONG_DOUBLE
+
+#else
+/* It appears that gtk-doc is too dumb to handle this file.  Provide
+   a dummy type getter to make things work.  */
+GType go_csplinel_get_type (void);
+GType go_csplinel_get_type (void) { return G_TYPE_NONE; }
 #endif
 
 #endif
diff --git a/goffice/math/go-regression.c b/goffice/math/go-regression.c
index ebaf0d9..7628a9c 100644
--- a/goffice/math/go-regression.c
+++ b/goffice/math/go-regression.c
@@ -128,6 +128,11 @@ general_linear_regressionl (long double *const *const xssT, int n,
 #define SUFFIX(_n) _n ## l
 #define FORMAT_f "Lf"
 #define FORMAT_g "Lg"
+#else
+/* It appears that gtk-doc is too dumb to handle this file.  Provide
+   a dummy type getter to make things work.  */
+GType go_regression_statl_get_type (void);
+GType go_regression_statl_get_type (void) { return G_TYPE_NONE; }
 #endif
 
 #endif


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