From 14e9b8fddd27e76adaa6d1aa4f5529b74024eb74 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Tue, 18 Nov 2014 19:24:22 -0500 Subject: [PATCH] Use my_tgamma/my_lgamma only ifndef HAS_TGAMMA/HAS_LGAMMA. --- ext/POSIX/POSIX.xs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index 452f766..ebbef38 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -738,11 +738,11 @@ static IV my_ilogb(NV x) /* Note that tgamma() and lgamma() implementations depend on each other. */ -#ifndef c99_tgamma +#ifndef HAS_TGAMMA static NV my_tgamma(NV x); # define c99_tgamma my_tgamma #endif -#ifndef c99_lgamma +#ifndef HAS_LGAMMA static NV my_lgamma(NV x); # define c99_lgamma my_lgamma #endif -- 1.8.3.1