summaryrefslogtreecommitdiff
path: root/unixish.h
diff options
context:
space:
mode:
authorChip Salzenberg <chip@perl.com>1997-02-17 17:59:02 +1200
committerChip Salzenberg <chip@atlantic.net>1997-02-18 13:22:00 +1200
commit35f4835537ae774426df7791662087b4be88978a (patch)
treeccc68eb1b9663cb1b72035ae67d9bda6219dd17b /unixish.h
parent15ff848f77796a7eb1aa7d49b2bc68dd9e9c24f9 (diff)
downloadperl-35f4835537ae774426df7791662087b4be88978a.tar.gz
Eliminate FP exceptions under SCO 5
Diffstat (limited to 'unixish.h')
-rw-r--r--unixish.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/unixish.h b/unixish.h
index e8ff11a107..f21ca739fb 100644
--- a/unixish.h
+++ b/unixish.h
@@ -93,11 +93,6 @@
#endif
#define ABORT() kill(getpid(),SIGABRT);
-#define BIT_BUCKET "/dev/null"
-#define PERL_SYS_INIT(c,v)
-#define PERL_SYS_TERM()
-#define dXSUB_SYS int dummy
-
/*
* fwrite1() should be a routine with the same calling sequence as fwrite(),
* but which outputs all of the bytes requested as a single stream (unlike
@@ -112,3 +107,13 @@
#define my_getenv(var) getenv(var)
+#ifdef PERL_SCO5
+# define PERL_SYS_INIT(c,v) fpsetmask(0)
+#else
+# define PERL_SYS_INIT(c,v)
+#endif
+#define PERL_SYS_TERM()
+
+#define BIT_BUCKET "/dev/null"
+
+#define dXSUB_SYS int dummy