summaryrefslogtreecommitdiff
path: root/ext/POSIX
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-11-12 07:00:56 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2014-11-14 19:01:46 -0500
commit221921257f469d56d21a752f848e11f8e3f8a0c3 (patch)
tree9e01aafce70a03842f0262bc0ad6515673f5d99f /ext/POSIX
parent74a9799626d5ff4be91fb8e3f6fb19fecc7a190d (diff)
downloadperl-221921257f469d56d21a752f848e11f8e3f8a0c3.tar.gz
Make the C99 *l test a little bit more accepting.
Diffstat (limited to 'ext/POSIX')
-rw-r--r--ext/POSIX/POSIX.xs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs
index 63f0d36f9b..35650922be 100644
--- a/ext/POSIX/POSIX.xs
+++ b/ext/POSIX/POSIX.xs
@@ -265,9 +265,9 @@
# 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