[webkit-gtk] TextCodec.cpp lacks include <cstdio> when compiling with clang-7.0

Adrian Perez de Castro aperez at igalia.com
Tue May 21 16:36:26 PDT 2019

Hello Denis,

On Tue, 21 May 2019 22:30:15 +0300, Denis Pronin <dannftk at yandex.ru> wrote:
> I have been dealing with compiling webkit-gtk on Gentoo with clang-7.1.0.
> I have encountered an issue regarding compiling TextCodec.cpp that
> uses snprintf in method 'TextCodec::getUnencodableReplacement'. The
> compiler lacks 'snprintf' as the result of not having <cstdio> there in
> the list of headers included. Please, add <cstdio> there to do away with
> the fail of compilation   

I just completed a build here with Clang 8.0 and it went just fine. I would
like to know whether you were using libc++ instead of libstdc++ before I try
to install Clang 7.1.0 to see if I can reproduce the issue. Could you comment
on that, please? (and thanks!)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20190522/945169b9/attachment.bin>

More information about the webkit-gtk mailing list