From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1792) id 8CC6A3858409; Sun, 2 Apr 2023 23:28:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8CC6A3858409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680478094; bh=bG/bwoQT2MIbrU2S7g0olGOKyQqrSYFRGSmqyC5PI3g=; h=From:To:Subject:Date:From; b=Ce0Kra8ntnYBCXvuMVDoJt5HO6R8haNGjoyPrxlrC8r6bvW1oqERybTUXZLuwgCPf 9N2vh4tkdKJPS2/+yXg6BKT+PwCxbOaScQqWoAdtaNCjrw20c8hFAeX3SXkUh+fdv1 Tq6qbhmrIclcs6H6Sk1bSWuyzQJlxUpgU5nAp/S8= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Samuel Thibault To: glibc-cvs@sourceware.org Subject: [glibc] stdio-common: Fix building when !IS_IN (libc) X-Act-Checkin: glibc X-Git-Author: Sergey Bugaev X-Git-Refname: refs/heads/master X-Git-Oldrev: 05024b52a45fde064fe42288cee19d1756f6d01d X-Git-Newrev: 589bcfdeefeba493fd0f90fbdcbd285ec1ed313d Message-Id: <20230402232814.8CC6A3858409@sourceware.org> Date: Sun, 2 Apr 2023 23:28:14 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=589bcfdeefeba493fd0f90fbdcbd285ec1ed313d commit 589bcfdeefeba493fd0f90fbdcbd285ec1ed313d Author: Sergey Bugaev Date: Sun Mar 19 18:09:53 2023 +0300 stdio-common: Fix building when !IS_IN (libc) In this case, _itoa_word () is already defined inline in the header (see sysdeps/generic/_itoa.h), and the second definition causes an error. Signed-off-by: Sergey Bugaev Message-Id: <20230319151017.531737-11-bugaevc@gmail.com> Diff: --- stdio-common/_itoa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdio-common/_itoa.c b/stdio-common/_itoa.c index 27285193bc..3037b0f529 100644 --- a/stdio-common/_itoa.c +++ b/stdio-common/_itoa.c @@ -157,6 +157,7 @@ const struct base_table_t _itoa_base_table[] attribute_hidden = }; #endif +#if IS_IN (libc) char * _itoa_word (_ITOA_WORD_TYPE value, char *buflim, unsigned int base, int upper_case) @@ -185,6 +186,7 @@ _itoa_word (_ITOA_WORD_TYPE value, char *buflim, return buflim; } #undef SPECIAL +#endif /* IS_IN (libc) */ #if _ITOA_NEEDED