On Wed, 2005-10-05 at 10:03 +0900, Peter O'Gorman wrote:
> | What's the definition for the system fmin() function?
>
> It is exactly the same, double fmin( double, double ); but I didn't feel
> like makeing a configure time check....
Interesting. I have this function on my FC3 system as well. Does the
attached patch work for you? Its a configure.in test for the fmin()
function and an "#ifndef HAVE_FMIN" around the goffice fmin() function.
Compiles just fine on my FC3 system.
David
Index: configure.in
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/configure.in,v
retrieving revision 1.359.2.64
diff -u -r1.359.2.64 configure.in
--- configure.in 1 Oct 2005 17:54:25 -0000 1.359.2.64
+++ configure.in 5 Oct 2005 21:46:27 -0000
@@ -109,6 +109,9 @@
AC_CHECK_FUNCS(random drand48 finite memmove mkdtemp uname times sysconf)
## --jsled
+## for lib/goffice
+AC_CHECK_FUNCS(fmin)
+
STRUCT_TM_GMTOFF_CHECK
SCANF_LLD_CHECK
if test $am_cv_scanf_lld = "no"; then
Index: lib/goffice/graph/plugins/plot_radar/gog-radar.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/lib/goffice/graph/plugins/plot_radar/Attic/gog-radar.c,v
retrieving revision 1.1.4.1
diff -u -r1.1.4.1 gog-radar.c
--- lib/goffice/graph/plugins/plot_radar/gog-radar.c 24 Apr 2005 00:34:53 -0000 1.1.4.1
+++ lib/goffice/graph/plugins/plot_radar/gog-radar.c 5 Oct 2005 21:46:27 -0000
@@ -294,11 +294,13 @@
typedef GogPlotView GogRadarView;
typedef GogPlotViewClass GogRadarViewClass;
+#ifndef FMIN
static double
fmin (double a, double b)
{
return (a < b) ? a : b;
}
+#endif
static void
gog_radar_view_render (GogView *view, GogViewAllocation const *bbox)
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel