]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
stdio-common: Fix building when !IS_IN (libc)
authorSergey Bugaev <bugaevc@gmail.com>
Sun, 19 Mar 2023 15:09:53 +0000 (18:09 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 2 Apr 2023 23:01:11 +0000 (01:01 +0200)
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>

stdio-common/_itoa.c

index 27285193bc8666c0de5b88e921e2060d624307ef..3037b0f5292226f8f9657f5cf1581a103417a0af 100644 (file)
@@ -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