summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 2cbbfddbdc..997b5ba783 100644
--- a/pp.c
+++ b/pp.c
@@ -2439,7 +2439,7 @@ PP(pp_ncmp)
dPOPTOPnnrl_nomg;
I32 value;
-#ifdef Perl_isnan
+#if defined(NAN_COMPARE_BROKEN) && defined(Perl_isnan)
if (Perl_isnan(left) || Perl_isnan(right)) {
SETs(&PL_sv_undef);
RETURN;