changeset 11181:a512c537b38e

cquad.cc: define copysign if needed
author John W. Eaton <jwe@octave.org>
date Wed, 03 Nov 2010 03:25:59 -0400
parents 1a26199cb212
children cb9c475b335f
files ChangeLog bootstrap.conf src/ChangeLog src/DLD-FUNCTIONS/cquad.cc
diffstat 4 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Nov 03 15:10:47 2010 +0800
+++ b/ChangeLog	Wed Nov 03 03:25:59 2010 -0400
@@ -1,3 +1,7 @@
+2010-11-03  John W. Eaton  <jwe@octave.org>
+
+	* bootstrap.conf (gnulib_modules): Include copysign in the list.
+
 2010-10-28  Rik  <octave@nomad.inbox5.com>
 
 	* NEWS: Update deprecated function list with autocov and autocor.
--- a/bootstrap.conf	Wed Nov 03 15:10:47 2010 +0800
+++ b/bootstrap.conf	Wed Nov 03 03:25:59 2010 -0400
@@ -19,6 +19,7 @@
 # gnulib modules used by this package.
 gnulib_modules="
   c-strcase
+  copysign
   crypto/md5
   fcntl
   fnmatch
--- a/src/ChangeLog	Wed Nov 03 15:10:47 2010 +0800
+++ b/src/ChangeLog	Wed Nov 03 03:25:59 2010 -0400
@@ -1,3 +1,8 @@
+2010-11-03  John W. Eaton  <jwe@octave.org>
+
+	* DLD-FUNCTIONS/cquad.cc: If we don't have copysign but we do
+	have _copysign, define copysign to be _copysign.
+
 2010-11-02  John W. Eaton  <jwe@octave.org>
 
 	* DLD-FUNCTIONS/cquad.cc (Fcquad): Use octave_Inf, not INFINITY.
--- a/src/DLD-FUNCTIONS/cquad.cc	Wed Nov 03 15:10:47 2010 +0800
+++ b/src/DLD-FUNCTIONS/cquad.cc	Wed Nov 03 03:25:59 2010 -0400
@@ -31,6 +31,11 @@
 #include "parse.h"
 #include "ov-fcn-handle.h"
 
+#if ! defined (HAVE_COPYSIGN) && defined (HAVE__COPYSIGN)
+#define copysign _copysign
+#define HAVE_COPYSIGN 1
+#endif
+
 /* Define the size of the interval heap. */
 #define cquad_heapsize                  200