Mercurial > hg > octave-lojdl
changeset 959:b527f7cdcc68
[project @ 1994-12-07 16:52:56 by jwe]
author | jwe |
---|---|
date | Wed, 07 Dec 1994 16:52:56 +0000 |
parents | 41f8acf06573 |
children | a2545afe2093 |
files | src/sysdep.cc |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sysdep.cc +++ b/src/sysdep.cc @@ -81,7 +81,7 @@ // Octave's idea of not a number. double octave_NaN; -#if defined (__386BSD__) && defined (HAVE_FLOATINGPOINT_H) +#if defined (HAVE_FLOATINGPOINT_H) #include <floatingpoint.h> #endif @@ -198,10 +198,12 @@ void sysdep_init (void) { -#if defined (__386BSD__) && defined (HAVE_FLOATINGPOINT_H) +#if defined (HAVE_FPSETMASK) +#if defined (__386BSD__) || defined (__FreeBSD__) // Disable trapping on common exceptions. fpsetmask (~(FP_X_OFL|FP_X_INV|FP_X_DZ|FP_X_DNML|FP_X_UFL|FP_X_IMP)); #endif +#endif #ifdef NeXT NeXT_init ();