crt: Don't provide strtold/wcstold in the UCRT import libraries The long double type in the UCRT doesn't match the one in mingw on x86, thus make sure we don't accidentally link to them (if the user e.g. specifies the CRT import library before libmingwex.a). Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-crt/lib-common/api-ms-win-crt-convert-l1-1-0.def b/mingw-w64-crt/lib-common/api-ms-win-crt-convert-l1-1-0.def index f700bb9..b59b1c0 100644 --- a/mingw-w64-crt/lib-common/api-ms-win-crt-convert-l1-1-0.def +++ b/mingw-w64-crt/lib-common/api-ms-win-crt-convert-l1-1-0.def
@@ -106,7 +106,8 @@ strtof strtoimax strtol -strtold +; Can't use long double functions from the CRT on x86 +F_ARM_ANY(strtold) strtoll strtoul strtoull @@ -119,7 +120,8 @@ wcstof wcstoimax wcstol -wcstold +; Can't use long double functions from the CRT on x86 +F_ARM_ANY(wcstold) wcstoll wcstombs wcstombs_s
diff --git a/mingw-w64-crt/lib-common/ucrtbase.def.in b/mingw-w64-crt/lib-common/ucrtbase.def.in index a2254bc..7d35e42 100644 --- a/mingw-w64-crt/lib-common/ucrtbase.def.in +++ b/mingw-w64-crt/lib-common/ucrtbase.def.in
@@ -2573,7 +2573,8 @@ strtok strtok_s strtol -strtold +; Can't use long double functions from the CRT on x86 +F_ARM_ANY(strtold) strtoll strtoul strtoull @@ -2637,7 +2638,8 @@ wcstok wcstok_s wcstol -wcstold +; Can't use long double functions from the CRT on x86 +F_ARM_ANY(wcstold) wcstoll wcstombs wcstombs_s