From 1a3dce4184895be87b32dcb7c891c5cb87d88a95 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 16 Mar 2012 21:18:48 -0400 Subject: [PATCH] make signgam a weak alias for an internal symbol otherwise, the standard C lgamma function will clobber a symbol in the namespace reserved for the application. --- src/math/signgam.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/math/signgam.c b/src/math/signgam.c index 12cc32d7..b39ceb04 100644 --- a/src/math/signgam.c +++ b/src/math/signgam.c @@ -1,2 +1,5 @@ -#include -int signgam = 0; +#include "libm.h" + +int __signgam = 0; + +weak_alias(__signgam, signgam); -- 2.25.1