openbsd-ports/devel/goffice/patches/patch-goffice_math_go-regression_c

22 lines
840 B
Plaintext

$OpenBSD: patch-goffice_math_go-regression_c,v 1.1 2013/03/11 08:19:38 ajacoutot Exp $
From 7a4c59faf5f7cb7a1419dc5b26d154f1a8007423 Mon Sep 17 00:00:00 2001
From: Morten Welinder <terra@gnome.org>
Date: Sun, 10 Mar 2013 20:56:37 +0000
Subject: Compilation: work around gtk-doc for --without-long-double builds.
--- goffice/math/go-regression.c.orig Sun Feb 24 00:20:13 2013
+++ goffice/math/go-regression.c Mon Mar 11 09:08:59 2013
@@ -128,6 +128,11 @@ general_linear_regressionl (long double *const *const
#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