diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-03-19 18:09:53 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-04-03 01:01:11 +0200 |
commit | 589bcfdeefeba493fd0f90fbdcbd285ec1ed313d (patch) | |
tree | e4014de85351caec3e2578f6993b23b9164a09b1 | |
parent | 05024b52a45fde064fe42288cee19d1756f6d01d (diff) | |
download | glibc-589bcfdeefeba493fd0f90fbdcbd285ec1ed313d.tar.gz glibc-589bcfdeefeba493fd0f90fbdcbd285ec1ed313d.tar.xz glibc-589bcfdeefeba493fd0f90fbdcbd285ec1ed313d.zip |
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>
-rw-r--r-- | stdio-common/_itoa.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |