← Back to team overview

kicad-developers team mailing list archive

Re: Printing size_t on MSW (%zu)

 

Is __USE_MINGW_ANSI_STDIO actually defined in the wxWidgets builds we use?
A quick search through their codebase for that symbol only shows them
testing for it and never actually defining it.

-Ian

On Fri, Jan 3, 2020 at 1:20 AM Jon Evans <jon@xxxxxxxxxxxxx> wrote:

> Hi all,
>
> Context:
> https://gitlab.com/kicad/code/kicad/merge_requests/28#note_264910682
>
> I have heard there are issues using "%zu" format specifier on
> Windows/mingw, because mingw links against a very old Windows library that
> does not support the C99 standard.
>
> I have also heard that this isn't an issue anymore because of
> __USE_MINGW_ANSI_STDIO in wxWidgets.
>
> I tried to reproduce this problem on my Windows 10 machine but couldn't --
> using %zu works fine.
>
> Does anyone know if this is still a problem on any of our supported
> platforms?
>
> Thanks,
> -Jon
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>

References