summaryrefslogtreecommitdiff
path: root/unixish.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-24 13:21:23 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-24 13:21:23 +0000
commitc77b533b28c0662914d761b264c2238f98d272a4 (patch)
tree82eb19c8936475bee43cb1755354fe92e5a8a108 /unixish.h
parent9faf41b626b963edb80798c7c7738bc20834dda2 (diff)
downloadperl-c77b533b28c0662914d761b264c2238f98d272a4.tar.gz
Factor the PERL_SYS_INIT() code, from Hugo van der Sanden.
p4raw-id: //depot/perl@10888
Diffstat (limited to 'unixish.h')
-rw-r--r--unixish.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/unixish.h b/unixish.h
index a7e9a08f74..fb3a995b60 100644
--- a/unixish.h
+++ b/unixish.h
@@ -118,24 +118,8 @@
#define Fflush(fp) fflush(fp)
#define Mkdir(path,mode) mkdir((path),(mode))
-/* these should be set in a hint file, not here */
#ifndef PERL_SYS_INIT
-#if defined(PERL_SCO5) || defined(__FreeBSD__)
-# ifdef __FreeBSD__
-# include <floatingpoint.h>
-# endif
-# define PERL_SYS_INIT(c,v) fpsetmask(0); MALLOC_INIT
-#else
-# ifdef POSIX_BC
-# define PERL_SYS_INIT(c,v) sigignore(SIGFPE); MALLOC_INIT
-# else
-# ifdef UTS
-# define PERL_SYS_INIT(c,v) signal(SIGFPE, SIG_IGN); MALLOC_INIT
-# else
-# define PERL_SYS_INIT(c,v) MALLOC_INIT
-# endif
-# endif
-#endif
+# define PERL_SYS_INIT(c,v) PERL_FPU_INIT MALLOC_INIT
#endif
#ifndef PERL_SYS_TERM