This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make the C99 *l test a little bit more accepting.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 12 Nov 2014 12:00:56 +0000 (07:00 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 15 Nov 2014 00:01:46 +0000 (19:01 -0500)
ext/POSIX/POSIX.xs

index 63f0d36..3565092 100644 (file)
 #    define bessel_y1 y1q
 #    define bessel_yn ynq
 #  elif defined(USE_LONG_DOUBLE) && \
-      defined(HAS_ILOGBL)
-/* There's already a symbol for ilogbl, we will use its truthiness
- * as the canary for all the *l variants being defined. */
+  (defined(HAS_FREXPL) || defined(HAS_ILOGBL)) && defined(HAS_SQRTL)
+/* Use some of the Configure scans for long double math functions
+ * as the canary for all the C99 *l variants being defined. */
 #    define c99_acosh  acoshl
 #    define c99_asinh  asinhl
 #    define c99_atanh  atanhl