On Tuesday 03 December 2024 23:28:02 LIU Hao wrote:
> 在 2024-12-03 22:16, Martin Storsjö 写道:
> > This patch also seems ok to me.
> > 
> > On first look, this feels like it adds a lot of noise to the headers,
> > but I guess it's not all that bad. So I can push it if nobody else
> > objects to it.
> > 
> > // Martin
> 
> The changes are fine if they match Microsoft headers.

Yes, they matches definitions of the MS headers.

It allowed me to compile application in debug mode with msvcrtd.dll
memory leak detector and then run it. It was compiled in the same way
via gcc and msvc.

I do not know a better way how to define those functions without locally
undefining macros. Is there some gcc/clang extension which can do it in
more cleaner way?

Anyway, MS headers are doing same thing (but this is not an excuse as MS
headers use msvc extensions, and mingw-w64 has to use gcc/clang
extensions for functionality not available in ISO C itself).


_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to