On 1.04.2025 22:16, Jeremy Drake via Mingw-w64-public wrote:
On Tue, 1 Apr 2025, Jacek Caban wrote:diff --git a/mingw-w64-crt/include/internal.h b/mingw-w64-crt/include/internal.h index 84d52c991..b30ae0e5f 100644 --- a/mingw-w64-crt/include/internal.h +++ b/mingw-w64-crt/include/internal.h @@ -287,6 +287,14 @@ static inline unsigned int __mingw_statusfp(void) return flags; } +#define __ASM_FUNC_CODE(name,code) \ + asm(".text\n\t" \ + ".p2align 2\n\t" \ + ".globl " __MINGW64_STRINGIFY(__MINGW_USYMBOL(trunc)) "\n\t" \ + ".def " __MINGW64_STRINGIFY(__MINGW_USYMBOL(trunc)) "; .scl 2; .type 32; .endef\n\t" \ + __MINGW64_STRINGIFY(__MINGW_USYMBOL(trunc)) ":\n\t" \ + code "\n\t"); + #ifdef __cplusplus } #endifIs this supposed to be "trunc" or rather "name"?
Yes, I messed that up (and tested with trunc, so it worked :/). I will fix it.
Thanks, Jacek _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
