From a66ac623b2e7b2ff181db12e7e76f53562a5a6e9 Mon Sep 17 00:00:00 2001 From: H-language Date: Fri, 1 May 2026 09:58:03 +1200 Subject: [PATCH] win32: add missing AttachConsole export to kernel32.def AttachConsole has been exported from kernel32.dll since Windows XP but was absent from TCC's import definitions, causing "undefined symbol 'AttachConsole'" at link time for code that uses it. --- win32/lib/kernel32.def | 1 + 1 file changed, 1 insertion(+) diff --git a/win32/lib/kernel32.def b/win32/lib/kernel32.def index 588613c3..8dc79705 100644 --- a/win32/lib/kernel32.def +++ b/win32/lib/kernel32.def @@ -9,6 +9,7 @@ AllocConsole AllocLSCallback AllocSLCallback AreFileApisANSI +AttachConsole BackupRead BackupSeek BackupWrite