From 6bc301672bfbde618d4ec02e51e6e2cbadd4ac1e Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 5 Dec 2024 08:05:04 +0800 Subject: math: Remove __XXX math functions from installed math.h [BZ #32418] Since libm doesn't export __XXX math functions, don't declare them in the installed math.h by adding to declare __XXX math functions internally for glibc build. This fixes BZ #32418. Signed-off-by: H.J. Lu Reviewed-by: Sam James --- include/math.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/math.h') diff --git a/include/math.h b/include/math.h index 035fd160ff..9ba4708801 100644 --- a/include/math.h +++ b/include/math.h @@ -10,6 +10,11 @@ /* Now define the internal interfaces. */ extern int __signgam; +# undef __MATHDECLX +# define __MATHDECLX(type, function,suffix, args, attrib) \ + __MATHDECL_1(type, function,suffix, args) __attribute__ (attrib); \ + __MATHDECL_1(type, __CONCAT(__,function),suffix, args) __attribute__ (attrib) + # if IS_IN (libc) || IS_IN (libm) hidden_proto (__finite) hidden_proto (__isinf) -- cgit v1.2.3