[gnumeric] compilation: resurrect long-double support.



commit cb33bd3c6ec0183114ccbe0ea087ce508a4b161b
Author: Morten Welinder <terra gnome org>
Date:   Sat Nov 7 12:41:30 2009 -0500

    compilation: resurrect long-double support.

 ChangeLog                  |    4 ++++
 NEWS                       |    3 +++
 plugins/fn-tsa/functions.c |    2 +-
 src/gnm-format.c           |    2 +-
 src/numbers.h              |    4 ++--
 src/rangefunc.h            |    2 +-
 src/regression.h           |    2 +-
 7 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index de4ff31..5502c5b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-07  Morten Welinder  <terra gnome org>
+
+	* src/numbers.h: Resurrect long double support.
+
 2009-11-06  Morten Welinder  <terra gnome org>
 
 	* src/value.c (value_get_as_gstring): Handle partial arrays.
diff --git a/NEWS b/NEWS
index 2f85344..e26d312 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,9 @@ Jody:
 	* turnkey win32 build on 32bit host.
 	* update desktop file to follow new guidelines.
 
+Morten:
+	* Resurrect long-double support.
+
 --------------------------------------------------------------------------
 Gnumeric 1.9.15
 
diff --git a/plugins/fn-tsa/functions.c b/plugins/fn-tsa/functions.c
index c8a17e7..34d1323 100644
--- a/plugins/fn-tsa/functions.c
+++ b/plugins/fn-tsa/functions.c
@@ -75,7 +75,7 @@ enum {
 	INTERPOLATION_SPLINE_AVG,
 };
 
-#ifdef WITH_LONG_DOUBLE
+#ifdef GNM_WITH_LONG_DOUBLE
 #	define GnmCSpline GOCSplinel
 #	define gnm_cspline_init go_cspline_initl
 #	define gnm_cspline_destroy go_cspline_destroyl
diff --git a/src/gnm-format.c b/src/gnm-format.c
index 9e267dd..72d02e0 100644
--- a/src/gnm-format.c
+++ b/src/gnm-format.c
@@ -222,7 +222,7 @@ gnm_format_specialize (GOFormat const *fmt, GnmValue const *value)
 		type = VALUE_IS_ERROR (value) ? 'E' : 'S';
 	}
 
-#ifdef WITH_LONG_DOUBLE
+#ifdef GNM_WITH_LONG_DOUBLE
 	return go_format_specializel (fmt, val, type, NULL);
 #else
 	return go_format_specialize (fmt, val, type, NULL);
diff --git a/src/numbers.h b/src/numbers.h
index cac6c4d..9c86aaf 100644
--- a/src/numbers.h
+++ b/src/numbers.h
@@ -25,7 +25,7 @@ double lgamma (double x);
 double lgamma_r (double x, int *signp);
 #endif
 
-#ifdef WITH_LONG_DOUBLE
+#ifdef GNM_WITH_LONG_DOUBLE
 
 #ifdef HAVE_SUNMATH_H
 #include <sunmath.h>
@@ -118,7 +118,7 @@ gnm_float gnm_yn (int n, gnm_float x);
 #define GNM_EPSILON	LDBL_EPSILON
 #define GNM_const(_c)	_c ## L
 
-#else /* !WITH_LONG_DOUBLE */
+#else /* !GNM_WITH_LONG_DOUBLE */
 
 typedef double gnm_float;
 
diff --git a/src/rangefunc.h b/src/rangefunc.h
index 083f6d1..514d46e 100644
--- a/src/rangefunc.h
+++ b/src/rangefunc.h
@@ -7,7 +7,7 @@
 
 G_BEGIN_DECLS
 
-#ifdef WITH_LONG_DOUBLE
+#ifdef GNM_WITH_LONG_DOUBLE
 #	define gnm_range_sum go_range_suml
 #	define gnm_range_sumsq go_range_sumsql
 #	define gnm_range_average go_range_averagel
diff --git a/src/regression.h b/src/regression.h
index ffdaed1..660a8fd 100644
--- a/src/regression.h
+++ b/src/regression.h
@@ -7,7 +7,7 @@
 
 G_BEGIN_DECLS
 
-#ifdef WITH_LONG_DOUBLE
+#ifdef GNM_WITH_LONG_DOUBLE
 #	define gnm_regression_stat_t go_regression_stat_tl
 #	define gnm_regression_stat_new go_regression_stat_newl
 #	define gnm_regression_stat_destroy go_regression_stat_destroyl



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