1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

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>
This commit is contained in:
Sergey Bugaev
2023-03-19 18:09:53 +03:00
committed by Samuel Thibault
parent 05024b52a4
commit 589bcfdeef

View File

@@ -157,6 +157,7 @@ const struct base_table_t _itoa_base_table[] attribute_hidden =
}; };
#endif #endif
#if IS_IN (libc)
char * char *
_itoa_word (_ITOA_WORD_TYPE value, char *buflim, _itoa_word (_ITOA_WORD_TYPE value, char *buflim,
unsigned int base, int upper_case) unsigned int base, int upper_case)
@@ -185,6 +186,7 @@ _itoa_word (_ITOA_WORD_TYPE value, char *buflim,
return buflim; return buflim;
} }
#undef SPECIAL #undef SPECIAL
#endif /* IS_IN (libc) */
#if _ITOA_NEEDED #if _ITOA_NEEDED