summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorTAKAI Kousuke <62541129+t-a-k@users.noreply.github.com>2021-10-05 23:17:33 +0900
committerKarl Williamson <khw@cpan.org>2022-03-05 19:13:49 -0700
commit3aea88f20c1f2a8df4a354a54cde01cd642750d9 (patch)
treed96e4e6d1249f7fe2c1c315e1a774d435158168c /Configure
parentf85e795837ef67ed2f54d110e0107cdefd45bc82 (diff)
downloadperl-3aea88f20c1f2a8df4a354a54cde01cd642750d9.tar.gz
Fixed possible syntax error in Configure's test program for Inf/NaN bytes.
"try.c" for (double|longdbl)(inf|nan)bytes seems to lack some preprocessor directives (probably accidentaly removed) and caused syntax error if HAS_LONG_DOUBLE is not defined.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/Configure b/Configure
index 4d5c3ed691..bd96249c07 100755
--- a/Configure
+++ b/Configure
@@ -20776,10 +20776,12 @@ int main(int argc, char *argv[]) {
memset((char *)&ldinf + 10, '\0', LONG_DOUBLESIZE - 10);
memset((char *)&ldnan + 10, '\0', LONG_DOUBLESIZE - 10);
# endif
+#endif
if (argc == 2) {
switch (argv[1][0]) {
case '1': bytes(&dinf, sizeof(dinf)); break;
case '2': bytes(&dnan, sizeof(dnan)); break;
+#ifdef HAS_LONG_DOUBLE
case '3': bytes(&ldinf, sizeof(ldinf)); break;
case '4': bytes(&ldnan, sizeof(ldnan)); break;
#endif