This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use my_tgamma/my_lgamma only ifndef HAS_TGAMMA/HAS_LGAMMA.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 19 Nov 2014 00:24:22 +0000 (19:24 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 19 Nov 2014 00:29:57 +0000 (19:29 -0500)
ext/POSIX/POSIX.xs

index 452f766..ebbef38 100644 (file)
@@ -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