This is the mail archive of the
mailing list for the GDB project.
Re: GDB 7.99.91 MinGW compilation error in cli-script.c
> Cc: email@example.com, firstname.lastname@example.org, email@example.com
> From: Pedro Alves <firstname.lastname@example.org>
> Date: Mon, 22 May 2017 16:26:19 +0100
> Is there still a reason for the "#include <_mingw.h>"?
Yes, that's where _GLIBCXX_USE_C99 is defined.
> Otherwise, if
> - older broken mingw releases get the replacement
> - newer fixed mingw releases don't get the replacement
> - mingw-w64 doesn't get the replacement (as it doesn't need one IIUC)
> then it's fine with me.
Hmmm... I see that MinGW64 doesn't define _GLIBCXX_USE_C99 in its
system headers, so I guess I will have to add the
__MINGW64_VERSION_MAJOR guard as well.
> It'd be useful for the archives if you expanded on which mingw versions
> and compilers you tested this on. Also likewise a short comment to
> the effect in the code would be likewise handy for future readers
OK, will do.
> (please use /**/ style comments).
I thought I did...