# HG changeset patch # User John W. Eaton # Date 1288769159 14400 # Node ID a512c537b38e1289e05e94c6e471a86c152056d8 # Parent 1a26199cb21227db8354b6b7cb1dc3ec4c217c51 cquad.cc: define copysign if needed diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-11-03 John W. Eaton + + * bootstrap.conf (gnulib_modules): Include copysign in the list. + 2010-10-28 Rik * NEWS: Update deprecated function list with autocov and autocor. diff --git a/bootstrap.conf b/bootstrap.conf --- a/bootstrap.conf +++ b/bootstrap.conf @@ -19,6 +19,7 @@ # gnulib modules used by this package. gnulib_modules=" c-strcase + copysign crypto/md5 fcntl fnmatch diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-11-03 John W. Eaton + + * 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 * DLD-FUNCTIONS/cquad.cc (Fcquad): Use octave_Inf, not INFINITY. diff --git a/src/DLD-FUNCTIONS/cquad.cc b/src/DLD-FUNCTIONS/cquad.cc --- a/src/DLD-FUNCTIONS/cquad.cc +++ b/src/DLD-FUNCTIONS/cquad.cc @@ -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