changeset 4387:dd0abcde160c

[project @ 2003-04-24 20:20:14 by jwe]
author jwe
date Thu, 24 Apr 2003 20:20:14 +0000
parents 112a509bd2e6
children a3020cb1fe0f
files liboctave/ChangeLog liboctave/lo-ieee.h
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Thu Apr 24 18:41:02 2003 +0000
+++ b/liboctave/ChangeLog	Thu Apr 24 20:20:14 2003 +0000
@@ -1,5 +1,7 @@
 2003-04-24  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
+	* lo-ieee.h (lo_ieee_signbit): Provide signbit decl for MinGW systems.
+
 	* kpse.cc (xclosedir): Don't define or declare for Windows.
 	(READABLE): Now a static function to avoid warnings from MinGW
 	compiler.	
--- a/liboctave/lo-ieee.h	Thu Apr 24 18:41:02 2003 +0000
+++ b/liboctave/lo-ieee.h	Thu Apr 24 20:20:14 2003 +0000
@@ -73,6 +73,9 @@
 #if defined (signbit)
 #define lo_ieee_signbit(x) signbit (x)
 #elif defined (HAVE_SIGNBIT)
+#if defined (__MINGW32__)
+extern "C" int signbit (double);
+#endif
 #define lo_ieee_signbit(x) (x < 0 || signbit (x))
 #elif defined (copysign)
 #define lo_ieee_signbit(x) (copysign (1.0, x) < 0)