在 2025-12-18 22:19, Kirill Makurin 写道:
I wonder if adding _MINGW_ASM_CALL will or will not affect applications which 
want to define/declare their own str[n]casecmp function? I don't know how such 
renames interact with redeclarations.

`_MINGW_ASM_CALL` changes the symbol of a function, so if a user calls `strcasecmp`, the compiler calls `_stricmp` instead. (Clang also attempts to inline the new target, but GCC doesn't do that.)

But it's not the same for these functions. If a user calls `strcasecmp`, the compiler just calls `strcasecmp`. The CRT library defines both `strcasecmp` and `_stricmp`, which resolve to the same function when the DLL is loaded.

I'll push this change after the CI passes.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to