These are available since Windows Vista - so we can rely on them
existing on arm64ec, just like on arm/aarch64.

This fixes linking the wcstok and fseeko64 functions, as the
helper functions provided on x86 aren't built in an arm64ec build
of the mingw-w64-crt.

Signed-off-by: Martin Storsjö <[email protected]>
---
 mingw-w64-crt/lib-common/msvcrt.def.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/mingw-w64-crt/lib-common/msvcrt.def.in 
b/mingw-w64-crt/lib-common/msvcrt.def.in
index 5c31c7916..26680b819 100644
--- a/mingw-w64-crt/lib-common/msvcrt.def.in
+++ b/mingw-w64-crt/lib-common/msvcrt.def.in
@@ -1928,7 +1928,10 @@ F_I386(_libm_sse2_tan_precise)
 ; i386 strtoll, strtoull, strtoimax, strtoumax, wcstoll, wcstoull, wcstoimax 
and wcstoumax aliases provided by emu
 #define WITH_STRTO64_ALIAS
 #endif
-#if defined(__arm__) || defined(__aarch64__)
+#if defined(__arm__) || defined(__aarch64__) || defined(__arm64ec__)
+; This uses functions that are available since Vista. ARM/AArch64/ARM64EC
+; can assume that those fucntions always are available; on x86 we provide
+; fallbacks in the import library.
 #define USE_WCSTOK_S_FOR_WCSTOK
 #define WITH_FSEEKO64_ALIAS
 #endif
-- 
2.43.0



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

Reply via email to