在 2022/3/16 23:25, Biswapriyo Nath 写道:
As you wish. Here is the 2nd update.

I suddenly realize this is C++ source. This may pull in libstdc++ and libgcc 
(or libc++, whatever).

Microsoft docs say this function returns a string that the user has to `delete[]` so I suspect we can't rewrite this function in C, only because we can't allocate C++ memory there.

On the other hand, this only makes a difference when one wants to build the CRT without a C++ compiler. This also doesn't seem the case, as both GCC and Clang are written in C++, so a C++ compiler is required to build the compiler, and probably others.

Not sure about what others may think; I am okay with this patch. If any issues emerge after this change, we will have to turn these into inline functions.



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

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

Reply via email to