summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-03-07 05:21:43 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-03-07 05:21:43 +0000
commitfce2b89e3773f74f134cc299697e386f7d98f01f (patch)
tree71884355c21fac3367172cdac205db85eb0c3a24 /pp.c
parente654d9081492941a3b1145787aaa3e0faa09141e (diff)
downloadperl-fce2b89e3773f74f134cc299697e386f7d98f01f.tar.gz
Define the Perl_pp_i_modulo_1() only iff we have glibc.
(Stronger variant of "pp.c: Perl_pp_i_modulo_1 needs help in non-glibc case", from Craig Berry) p4raw-id: //depot/perl@18845
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pp.c b/pp.c
index bb3ac68dda..ba6bf07b17 100644
--- a/pp.c
+++ b/pp.c
@@ -2471,12 +2471,12 @@ PP(pp_i_modulo_0)
}
}
+#ifdef __GLIBC__
STATIC
PP(pp_i_modulo_1)
{
-#ifdef __GLIBC__
/* This is the i_modulo with the workaround for the _moddi3 bug
- * in (at least) glibc 2.2.5 (the "right = -right" is the workaround).
+ * in (at least) glibc 2.2.5 (the PERL_ABS() the workaround).
* See below for pp_i_modulo. */
dSP; dATARGET; tryAMAGICbin(modulo,opASSIGN);
{
@@ -2486,8 +2486,8 @@ PP(pp_i_modulo_1)
SETi( left % PERL_ABS(right) );
RETURN;
}
-#endif
}
+#endif
PP(pp_i_modulo)
{