1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/cad/cider/files/patch-bc

26 lines
533 B
Plaintext
Raw Normal View History

--- cider/common/src/bin/main.c.orig Sat Mar 12 08:20:59 1994
+++ cider/common/src/bin/main.c Fri Oct 17 22:19:55 2003
@@ -36,6 +36,11 @@
#endif
#include "patchlev.h"
+
+#ifdef __FreeBSD__
+#include <ieeefp.h>
+#endif
+
#include "suffix.h"
/* (Virtual) Machine architecture parameters */
@@ -214,6 +219,10 @@
FILE *fp;
FILE *circuit_file;
+#endif
+
+#ifdef __FreeBSD__
+ fpsetmask(fpgetmask() & ~FP_X_INV & ~FP_X_DZ & ~FP_X_OFL);
#endif
/* MFB tends to jump to 0 on errors. This tends to catch it. */