summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-05-05 10:03:01 -0600
committerKarl Williamson <khw@cpan.org>2019-05-24 17:09:29 -0600
commit02fd9d541c593812f3e152dc406cb4399353d5dc (patch)
tree27f9745a50fd64543b70996e2595633b29e61fb9 /numeric.c
parent89f69032d6a71f41b96ae6becbf3df4e2f9509a5 (diff)
downloadperl-02fd9d541c593812f3e152dc406cb4399353d5dc.tar.gz
numeric.c: Add #error case
It's best to have a #error case when nothing in the #if #else series is true, as it catches the problem at compile time.
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/numeric.c b/numeric.c
index d4e3493784..5d2fc5c756 100644
--- a/numeric.c
+++ b/numeric.c
@@ -66,6 +66,8 @@ S_strtod(pTHX_ const char * const s, char ** e)
result = strtod(s, e);
+# else
+# error No strtod() equivalent found
# endif
RESTORE_LC_NUMERIC();