summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-04-15 04:10:54 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-03 06:56:03 +0000
commit0630166f39b2fc31415e8078cd74fafef99606af (patch)
treebb0d2c7527f44450d12396bb9a75c887a7b08f38 /pp.c
parentc057f5bc3ae09d10fe8e5f8cc5afe4cca331e177 (diff)
downloadperl-0630166f39b2fc31415e8078cd74fafef99606af.tar.gz
IEEE math for the masses
Message-ID: <20050415141054.GA12749@mccoy.peters.homeunix.org> (tests added to t/op/exp.t) p4raw-id: //depot/perl@24371
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index d107ab5e2d..2ba5b61b29 100644
--- a/pp.c
+++ b/pp.c
@@ -35,6 +35,14 @@
extern Pid_t getpid (void);
#endif
+/*
+ * Some BSDs and Cygwin default to POSIX math instead of IEEE.
+ * This switches them over to IEEE.
+ */
+#if defined(LIBM_LIB_VERSION)
+ _LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
+#endif
+
/* variations on pp_null */
PP(pp_stub)