head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.20 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.18 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.16 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.14 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.12 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.10 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.8 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.6 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.4 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.2 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.1.0.2 pkgsrc-2007Q4-base:1.1; locks; strict; comment @# @; 1.2 date 2008.03.07.21.34.28; author wiz; state dead; branches; next 1.1; 1.1 date 2007.11.23.15.37.37; author rillig; state Exp; branches; next ; desc @@ 1.2 log @Remove gnumeric-current, newer version in gnumeric. @ text @$NetBSD: patch-aa,v 1.1 2007/11/23 15:37:37 rillig Exp $ Sunpro doesn't like floating point comparisons in constant expressions. --- plugins/numtheory/numtheory.c.orig 2007-01-01 03:40:18.000000000 +0100 +++ plugins/numtheory/numtheory.c 2007-11-23 16:17:34.395473000 +0100 @@@@ -33,7 +33,10 @@@@ GNM_PLUGIN_MODULE_HEADER; #define OUT_OF_BOUNDS "#LIMIT!" -static const double bit_max = MIN (1 / GNM_EPSILON, (gnm_float)G_MAXUINT64); +static inline double bit_max_fn(void) { + return MIN (1 / GNM_EPSILON, (gnm_float)G_MAXUINT64); +} +#define bit_max (bit_max_fn()) /* ------------------------------------------------------------------------- */ @ 1.1 log @Made the package work with sunpro. @ text @d1 1 a1 1 $NetBSD$ @