public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] stdio-common: Fix building when !IS_IN (libc)
@ 2023-04-02 23:28 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2023-04-02 23:28 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=589bcfdeefeba493fd0f90fbdcbd285ec1ed313d

commit 589bcfdeefeba493fd0f90fbdcbd285ec1ed313d
Author: Sergey Bugaev <bugaevc@gmail.com>
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 <bugaevc@gmail.com>
    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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-02 23:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-02 23:28 [glibc] stdio-common: Fix building when !IS_IN (libc) Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).