summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-10-13 17:03:32 +0200
committerAaron Crane <arc@cpan.org>2017-10-21 16:53:07 +0100
commit0cbb9d6e5110600ac96ca9d7544c8956082ebf0f (patch)
tree14e6485bf65401a72fcc03d7dcdebbbc3165b3b3 /numeric.c
parent2abc681d27f72f8a4ad94049b1ae16171521dd33 (diff)
downloadperl-0cbb9d6e5110600ac96ca9d7544c8956082ebf0f.tar.gz
numeric.c: simplify cpp conditionals
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/numeric.c b/numeric.c
index 5771907b2e..9d5982a871 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1213,8 +1213,7 @@ Perl_my_atof(pTHX_ const char* s)
#ifdef USE_QUADMATH
Perl_my_atof2(aTHX_ s, &x);
return x;
-#else
-# ifdef USE_LOCALE_NUMERIC
+#elif defined(USE_LOCALE_NUMERIC)
PERL_ARGS_ASSERT_MY_ATOF;
{
@@ -1244,9 +1243,8 @@ Perl_my_atof(pTHX_ const char* s)
Perl_atof2(s, x);
RESTORE_LC_NUMERIC();
}
-# else
+#else
Perl_atof2(s, x);
-# endif
#endif
return x;
}