From 3aea88f20c1f2a8df4a354a54cde01cd642750d9 Mon Sep 17 00:00:00 2001 From: TAKAI Kousuke <62541129+t-a-k@users.noreply.github.com> Date: Tue, 5 Oct 2021 23:17:33 +0900 Subject: 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. --- Configure | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Configure') 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 -- cgit v1.2.1