aboutsummaryrefslogtreecommitdiff
path: root/tinycc/win32/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tinycc/win32/lib')
-rw-r--r--tinycc/win32/lib/chkstk.S73
-rw-r--r--tinycc/win32/lib/crt1.c95
-rw-r--r--tinycc/win32/lib/crt1w.c3
-rw-r--r--tinycc/win32/lib/crtinit.c26
-rw-r--r--tinycc/win32/lib/dllcrt1.c18
-rw-r--r--tinycc/win32/lib/dllmain.c9
-rw-r--r--tinycc/win32/lib/gdi32.def337
-rw-r--r--tinycc/win32/lib/kernel32.def773
-rw-r--r--tinycc/win32/lib/msvcrt.def1320
-rw-r--r--tinycc/win32/lib/user32.def658
-rw-r--r--tinycc/win32/lib/wincrt1.c86
-rw-r--r--tinycc/win32/lib/wincrt1w.c3
-rw-r--r--tinycc/win32/lib/ws2_32.def198
13 files changed, 0 insertions, 3599 deletions
diff --git a/tinycc/win32/lib/chkstk.S b/tinycc/win32/lib/chkstk.S
deleted file mode 100644
index 6f583a5..0000000
--- a/tinycc/win32/lib/chkstk.S
+++ /dev/null
@@ -1,73 +0,0 @@
-/* ---------------------------------------------- */
-/* chkstk86.s */
-
-#ifdef __leading_underscore
-# define _(s) _##s
-#else
-# define _(s) s
-#endif
-
-/* ---------------------------------------------- */
-#ifndef __x86_64__
-/* ---------------------------------------------- */
-
-.globl _(__chkstk)
-_(__chkstk):
- xchg (%esp),%ebp /* store ebp, get ret.addr */
- push %ebp /* push ret.addr */
- lea 4(%esp),%ebp /* setup frame ptr */
- push %ecx /* save ecx */
- mov %ebp,%ecx
-P0:
- sub $4096,%ecx
- test %eax,(%ecx)
- sub $4096,%eax
- cmp $4096,%eax
- jge P0
- sub %eax,%ecx
- test %eax,(%ecx)
-
- mov %esp,%eax
- mov %ecx,%esp
- mov (%eax),%ecx /* restore ecx */
- jmp *4(%eax)
-
-/* ---------------------------------------------- */
-#else
-/* ---------------------------------------------- */
-
-.globl _(__chkstk)
-_(__chkstk):
- xchg (%rsp),%rbp /* store ebp, get ret.addr */
- push %rbp /* push ret.addr */
- lea 8(%rsp),%rbp /* setup frame ptr */
- push %rcx /* save ecx */
- mov %rbp,%rcx
- movslq %eax,%rax
-P0:
- sub $4096,%rcx
- test %rax,(%rcx)
- sub $4096,%rax
- cmp $4096,%rax
- jge P0
- sub %rax,%rcx
- test %rax,(%rcx)
-
- mov %rsp,%rax
- mov %rcx,%rsp
- mov (%rax),%rcx /* restore ecx */
- jmp *8(%rax)
-
-/* ---------------------------------------------- */
-/* setjmp/longjmp support */
-
-.globl _(tinyc_getbp)
-_(tinyc_getbp):
- mov %rbp,%rax
- ret
-
-/* ---------------------------------------------- */
-#endif
-/* ---------------------------------------------- */
-
-
diff --git a/tinycc/win32/lib/crt1.c b/tinycc/win32/lib/crt1.c
deleted file mode 100644
index 0686302..0000000
--- a/tinycc/win32/lib/crt1.c
+++ /dev/null
@@ -1,95 +0,0 @@
-// =============================================
-// crt1.c
-
-// _UNICODE for tchar.h, UNICODE for API
-#include <tchar.h>
-
-#include <windows.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#define _UNKNOWN_APP 0
-#define _CONSOLE_APP 1
-#define _GUI_APP 2
-
-#define _MCW_PC 0x00030000 // Precision Control
-#define _PC_24 0x00020000 // 24 bits
-#define _PC_53 0x00010000 // 53 bits
-#define _PC_64 0x00000000 // 64 bits
-
-#ifdef _UNICODE
-#define __tgetmainargs __wgetmainargs
-#define _tstart _wstart
-#define _tmain wmain
-#define _runtmain _runwmain
-#else
-#define __tgetmainargs __getmainargs
-#define _tstart _start
-#define _tmain main
-#define _runtmain _runmain
-#endif
-
-typedef struct { int newmode; } _startupinfo;
-int __cdecl __tgetmainargs(int *pargc, _TCHAR ***pargv, _TCHAR ***penv, int globb, _startupinfo*);
-void __cdecl __set_app_type(int apptype);
-unsigned int __cdecl _controlfp(unsigned int new_value, unsigned int mask);
-extern int _tmain(int argc, _TCHAR * argv[], _TCHAR * env[]);
-
-#include "crtinit.c"
-
-static int do_main (int argc, _TCHAR * argv[], _TCHAR * env[])
-{
- int retval;
- run_ctors(argc, argv, env);
- retval = _tmain(__argc, __targv, _tenviron);
- run_dtors();
- return retval;
-}
-
-/* Allow command-line globbing with "int _dowildcard = 1;" in the user source */
-int _dowildcard;
-
-static LONG WINAPI catch_sig(EXCEPTION_POINTERS *ex)
-{
- return _XcptFilter(ex->ExceptionRecord->ExceptionCode, ex);
-}
-
-void _tstart(void)
-{
- _startupinfo start_info = {0};
- SetUnhandledExceptionFilter(catch_sig);
- // Sets the current application type
- __set_app_type(_CONSOLE_APP);
-
- // Set default FP precision to 53 bits (8-byte double)
- // _MCW_PC (Precision control) is not supported on ARM
-#if defined __i386__ || defined __x86_64__
- _controlfp(_PC_53, _MCW_PC);
-#endif
-
- __tgetmainargs( &__argc, &__targv, &_tenviron, _dowildcard, &start_info);
- exit(do_main(__argc, __targv, _tenviron));
-}
-
-int _runtmain(int argc, /* as tcc passed in */ char **argv)
-{
-#ifdef UNICODE
- _startupinfo start_info = {0};
-
- __tgetmainargs(&__argc, &__targv, &_tenviron, _dowildcard, &start_info);
- /* may be wrong when tcc has received wildcards (*.c) */
- if (argc < __argc) {
- __targv += __argc - argc;
- __argc = argc;
- }
-#else
- __argc = argc;
- __targv = argv;
-#endif
-#if defined __i386__ || defined __x86_64__
- _controlfp(_PC_53, _MCW_PC);
-#endif
- return _tmain(__argc, __targv, _tenviron);
-}
-
-// =============================================
diff --git a/tinycc/win32/lib/crt1w.c b/tinycc/win32/lib/crt1w.c
deleted file mode 100644
index 2b8bbc8..0000000
--- a/tinycc/win32/lib/crt1w.c
+++ /dev/null
@@ -1,3 +0,0 @@
-#define _UNICODE 1
-#define UNICODE 1
-#include "crt1.c"
diff --git a/tinycc/win32/lib/crtinit.c b/tinycc/win32/lib/crtinit.c
deleted file mode 100644
index 31f087b..0000000
--- a/tinycc/win32/lib/crtinit.c
+++ /dev/null
@@ -1,26 +0,0 @@
-//+---------------------------------------------------------------------------
-
-#ifdef __leading_underscore
-# define _(s) s
-#else
-# define _(s) _##s
-#endif
-
-extern void (*_(_init_array_start)[]) (int argc, _TCHAR **argv, _TCHAR **envp);
-extern void (*_(_init_array_end)[]) (int argc, _TCHAR **argv, _TCHAR **envp);
-extern void (*_(_fini_array_start)[]) (void);
-extern void (*_(_fini_array_end)[]) (void);
-
-static void run_ctors(int argc, _TCHAR **argv, _TCHAR **env)
-{
- int i = 0;
- while (&_(_init_array_start)[i] != _(_init_array_end))
- (*_(_init_array_start)[i++])(argc, argv, env);
-}
-
-static void run_dtors(void)
-{
- int i = 0;
- while (&_(_fini_array_end)[i] != _(_fini_array_start))
- (*_(_fini_array_end)[--i])();
-}
diff --git a/tinycc/win32/lib/dllcrt1.c b/tinycc/win32/lib/dllcrt1.c
deleted file mode 100644
index 5a9be82..0000000
--- a/tinycc/win32/lib/dllcrt1.c
+++ /dev/null
@@ -1,18 +0,0 @@
-//+---------------------------------------------------------------------------
-
-#include <tchar.h>
-#include <windows.h>
-#include "crtinit.c"
-
-BOOL WINAPI DllMain (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved);
-
-BOOL WINAPI _dllstart(HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved)
-{
- BOOL bRet;
- if (dwReason == DLL_PROCESS_ATTACH) /* ignore DLL_THREAD_ATTACH */
- run_ctors(0, 0, 0);
- bRet = DllMain (hDll, dwReason, lpReserved);
- if (dwReason == DLL_PROCESS_DETACH) /* ignore DLL_THREAD_DETACH */
- run_dtors();
- return bRet;
-}
diff --git a/tinycc/win32/lib/dllmain.c b/tinycc/win32/lib/dllmain.c
deleted file mode 100644
index 2c25b98..0000000
--- a/tinycc/win32/lib/dllmain.c
+++ /dev/null
@@ -1,9 +0,0 @@
-//+---------------------------------------------------------------------------
-
-#include <windows.h>
-
-BOOL WINAPI DllMain (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved)
-{
- return TRUE;
-}
-
diff --git a/tinycc/win32/lib/gdi32.def b/tinycc/win32/lib/gdi32.def
deleted file mode 100644
index 02766da..0000000
--- a/tinycc/win32/lib/gdi32.def
+++ /dev/null
@@ -1,337 +0,0 @@
-LIBRARY gdi32.dll
-
-EXPORTS
-AbortDoc
-AbortPath
-AddFontResourceA
-AddFontResourceW
-AngleArc
-AnimatePalette
-Arc
-ArcTo
-BeginPath
-BitBlt
-ByeByeGDI
-CancelDC
-CheckColorsInGamut
-ChoosePixelFormat
-Chord
-CloseEnhMetaFile
-CloseFigure
-CloseMetaFile
-ColorCorrectPalette
-ColorMatchToTarget
-CombineRgn
-CombineTransform
-CopyEnhMetaFileA
-CopyEnhMetaFileW
-CopyMetaFileA
-CopyMetaFileW
-CreateBitmap
-CreateBitmapIndirect
-CreateBrushIndirect
-CreateColorSpaceA
-CreateColorSpaceW
-CreateCompatibleBitmap
-CreateCompatibleDC
-CreateDCA
-CreateDCW
-CreateDIBPatternBrush
-CreateDIBPatternBrushPt
-CreateDIBSection
-CreateDIBitmap
-CreateDiscardableBitmap
-CreateEllipticRgn
-CreateEllipticRgnIndirect
-CreateEnhMetaFileA
-CreateEnhMetaFileW
-CreateFontA
-CreateFontIndirectA
-CreateFontIndirectW
-CreateFontW
-CreateHalftonePalette
-CreateHatchBrush
-CreateICA
-CreateICW
-CreateMetaFileA
-CreateMetaFileW
-CreatePalette
-CreatePatternBrush
-CreatePen
-CreatePenIndirect
-CreatePolyPolygonRgn
-CreatePolygonRgn
-CreateRectRgn
-CreateRectRgnIndirect
-CreateRoundRectRgn
-CreateScalableFontResourceA
-CreateScalableFontResourceW
-CreateSolidBrush
-DPtoLP
-DeleteColorSpace
-DeleteDC
-DeleteEnhMetaFile
-DeleteMetaFile
-DeleteObject
-DescribePixelFormat
-DeviceCapabilitiesEx
-DeviceCapabilitiesExA
-DeviceCapabilitiesExW
-DrawEscape
-Ellipse
-EnableEUDC
-EndDoc
-EndPage
-EndPath
-EnumEnhMetaFile
-EnumFontFamiliesA
-EnumFontFamiliesExA
-EnumFontFamiliesExW
-EnumFontFamiliesW
-EnumFontsA
-EnumFontsW
-EnumICMProfilesA
-EnumICMProfilesW
-EnumMetaFile
-EnumObjects
-EqualRgn
-Escape
-ExcludeClipRect
-ExtCreatePen
-ExtCreateRegion
-ExtEscape
-ExtFloodFill
-ExtSelectClipRgn
-ExtTextOutA
-ExtTextOutW
-FillPath
-FillRgn
-FixBrushOrgEx
-FlattenPath
-FloodFill
-FrameRgn
-GdiComment
-GdiFlush
-GdiGetBatchLimit
-GdiPlayDCScript
-GdiPlayJournal
-GdiPlayScript
-GdiSetBatchLimit
-GetArcDirection
-GetAspectRatioFilterEx
-GetBitmapBits
-GetBitmapDimensionEx
-GetBkColor
-GetBkMode
-GetBoundsRect
-GetBrushOrgEx
-GetCharABCWidthsA
-GetCharABCWidthsFloatA
-GetCharABCWidthsFloatW
-GetCharABCWidthsW
-GetCharWidth32A
-GetCharWidth32W
-GetCharWidthA
-GetCharWidthFloatA
-GetCharWidthFloatW
-GetCharWidthW
-GetCharacterPlacementA
-GetCharacterPlacementW
-GetClipBox
-GetClipRgn
-GetColorAdjustment
-GetColorSpace
-GetCurrentObject
-GetCurrentPositionEx
-GetDCOrgEx
-GetDIBColorTable
-GetDIBits
-GetDeviceCaps
-GetDeviceGammaRamp
-GetEnhMetaFileA
-GetEnhMetaFileBits
-GetEnhMetaFileDescriptionA
-GetEnhMetaFileDescriptionW
-GetEnhMetaFileHeader
-GetEnhMetaFilePaletteEntries
-GetEnhMetaFileW
-GetFontData
-GetFontLanguageInfo
-GetFontResourceInfo
-GetGlyphOutline
-GetGlyphOutlineA
-GetGlyphOutlineW
-GetGraphicsMode
-GetICMProfileA
-GetICMProfileW
-GetKerningPairs
-GetKerningPairsA
-GetKerningPairsW
-GetLayout
-GetLogColorSpaceA
-GetLogColorSpaceW
-GetMapMode
-GetMetaFileA
-GetMetaFileBitsEx
-GetMetaFileW
-GetMetaRgn
-GetMiterLimit
-GetNearestColor
-GetNearestPaletteIndex
-GetObjectA
-GetObjectType
-GetObjectW
-GetOutlineTextMetricsA
-GetOutlineTextMetricsW
-GetPaletteEntries
-GetPath
-GetPixel
-GetPixelFormat
-GetPolyFillMode
-GetROP2
-GetRandomRgn
-GetRasterizerCaps
-GetRegionData
-GetRgnBox
-GetStockObject
-GetStretchBltMode
-GetSystemPaletteEntries
-GetSystemPaletteUse
-GetTextAlign
-GetTextCharacterExtra
-GetTextCharset
-GetTextCharsetInfo
-GetTextColor
-GetTextExtentExPointA
-GetTextExtentExPointW
-GetTextExtentPoint32A
-GetTextExtentPoint32W
-GetTextExtentPointA
-GetTextExtentPointW
-GetTextFaceA
-GetTextFaceW
-GetTextMetricsA
-GetTextMetricsW
-GetViewportExtEx
-GetViewportOrgEx
-GetWinMetaFileBits
-GetWindowExtEx
-GetWindowOrgEx
-GetWorldTransform
-IntersectClipRect
-InvertRgn
-LPtoDP
-LineDDA
-LineTo
-MaskBlt
-ModifyWorldTransform
-MoveToEx
-OffsetClipRgn
-OffsetRgn
-OffsetViewportOrgEx
-OffsetWindowOrgEx
-PaintRgn
-PatBlt
-PathToRegion
-Pie
-PlayEnhMetaFile
-PlayEnhMetaFileRecord
-PlayMetaFile
-PlayMetaFileRecord
-PlgBlt
-PolyBezier
-PolyBezierTo
-PolyDraw
-PolyPolygon
-PolyPolyline
-PolyTextOutA
-PolyTextOutW
-Polygon
-Polyline
-PolylineTo
-PtInRegion
-PtVisible
-RealizePalette
-RectInRegion
-RectVisible
-Rectangle
-RemoveFontResourceA
-RemoveFontResourceW
-ResetDCA
-ResetDCW
-ResizePalette
-RestoreDC
-RoundRect
-SaveDC
-ScaleViewportExtEx
-ScaleWindowExtEx
-SelectClipPath
-SelectClipRgn
-SelectObject
-SelectPalette
-SetAbortProc
-SetArcDirection
-SetBitmapBits
-SetBitmapDimensionEx
-SetBkColor
-SetBkMode
-SetBoundsRect
-SetBrushOrgEx
-SetColorAdjustment
-SetColorSpace
-SetDIBColorTable
-SetDIBits
-SetDIBitsToDevice
-SetDeviceGammaRamp
-SetEnhMetaFileBits
-SetFontEnumeration
-SetGraphicsMode
-SetICMMode
-SetICMProfileA
-SetICMProfileW
-SetLayout
-SetMagicColors
-SetMapMode
-SetMapperFlags
-SetMetaFileBitsEx
-SetMetaRgn
-SetMiterLimit
-SetObjectOwner
-SetPaletteEntries
-SetPixel
-SetPixelFormat
-SetPixelV
-SetPolyFillMode
-SetROP2
-SetRectRgn
-SetStretchBltMode
-SetSystemPaletteUse
-SetTextAlign
-SetTextCharacterExtra
-SetTextColor
-SetTextJustification
-SetViewportExtEx
-SetViewportOrgEx
-SetWinMetaFileBits
-SetWindowExtEx
-SetWindowOrgEx
-SetWorldTransform
-StartDocA
-StartDocW
-StartPage
-StretchBlt
-StretchDIBits
-StrokeAndFillPath
-StrokePath
-SwapBuffers
-TextOutA
-TextOutW
-TranslateCharsetInfo
-UnrealizeObject
-UpdateColors
-UpdateICMRegKeyA
-UpdateICMRegKeyW
-WidenPath
-gdiPlaySpoolStream
-pfnRealizePalette
-pfnSelectPalette
diff --git a/tinycc/win32/lib/kernel32.def b/tinycc/win32/lib/kernel32.def
deleted file mode 100644
index 88875b0..0000000
--- a/tinycc/win32/lib/kernel32.def
+++ /dev/null
@@ -1,773 +0,0 @@
-LIBRARY kernel32.dll
-
-EXPORTS
-AddAtomA
-AddAtomW
-AllocConsole
-AllocLSCallback
-AllocSLCallback
-AreFileApisANSI
-BackupRead
-BackupSeek
-BackupWrite
-Beep
-BeginUpdateResourceA
-BeginUpdateResourceW
-BuildCommDCBA
-BuildCommDCBAndTimeoutsA
-BuildCommDCBAndTimeoutsW
-BuildCommDCBW
-CallNamedPipeA
-CallNamedPipeW
-Callback12
-Callback16
-Callback20
-Callback24
-Callback28
-Callback32
-Callback36
-Callback4
-Callback40
-Callback44
-Callback48
-Callback52
-Callback56
-Callback60
-Callback64
-Callback8
-CancelDeviceWakeupRequest
-CancelIo
-CancelWaitableTimer
-ClearCommBreak
-ClearCommError
-CloseHandle
-CloseProfileUserMapping
-CloseSystemHandle
-CommConfigDialogA
-CommConfigDialogW
-CompareFileTime
-CompareStringA
-CompareStringW
-ConnectNamedPipe
-ContinueDebugEvent
-ConvertDefaultLocale
-ConvertThreadToFiber
-ConvertToGlobalHandle
-CopyFileA
-CopyFileExA
-CopyFileExW
-CopyFileW
-CreateConsoleScreenBuffer
-CreateDirectoryA
-CreateDirectoryExA
-CreateDirectoryExW
-CreateDirectoryW
-CreateEventA
-CreateEventW
-CreateFiber
-CreateFileA
-CreateFileMappingA
-CreateFileMappingW
-CreateFileW
-CreateIoCompletionPort
-CreateKernelThread
-CreateMailslotA
-CreateMailslotW
-CreateMutexA
-CreateMutexW
-CreateNamedPipeA
-CreateNamedPipeW
-CreatePipe
-CreateProcessA
-CreateProcessW
-CreateRemoteThread
-CreateSemaphoreA
-CreateSemaphoreW
-CreateSocketHandle
-CreateTapePartition
-CreateThread
-CreateToolhelp32Snapshot
-CreateWaitableTimerA
-CreateWaitableTimerW
-DebugActiveProcess
-DebugBreak
-DefineDosDeviceA
-DefineDosDeviceW
-DeleteAtom
-DeleteCriticalSection
-DeleteFiber
-DeleteFileA
-DeleteFileW
-DeviceIoControl
-DisableThreadLibraryCalls
-DisconnectNamedPipe
-DosDateTimeToFileTime
-DuplicateHandle
-EndUpdateResourceA
-EndUpdateResourceW
-EnterCriticalSection
-EnumCalendarInfoA
-EnumCalendarInfoExA
-EnumCalendarInfoExW
-EnumCalendarInfoW
-EnumDateFormatsA
-EnumDateFormatsExA
-EnumDateFormatsExW
-EnumDateFormatsW
-EnumLanguageGroupLocalesA
-EnumLanguageGroupLocalesW
-EnumResourceLanguagesA
-EnumResourceLanguagesW
-EnumResourceNamesA
-EnumResourceNamesW
-EnumResourceTypesA
-EnumResourceTypesW
-EnumSystemCodePagesA
-EnumSystemCodePagesW
-EnumSystemGeoID
-EnumSystemLanguageGroupsA
-EnumSystemLanguageGroupsW
-EnumSystemLocalesA
-EnumSystemLocalesW
-EnumTimeFormatsA
-EnumTimeFormatsW
-EnumUILanguagesA
-EnumUILanguagesW
-EraseTape
-EscapeCommFunction
-ExitProcess
-ExitThread
-ExpandEnvironmentStringsA
-ExpandEnvironmentStringsW
-FT_Exit0
-FT_Exit12
-FT_Exit16
-FT_Exit20
-FT_Exit24
-FT_Exit28
-FT_Exit32
-FT_Exit36
-FT_Exit4
-FT_Exit40
-FT_Exit44
-FT_Exit48
-FT_Exit52
-FT_Exit56
-FT_Exit8
-FT_Prolog
-FT_Thunk
-FatalAppExitA
-FatalAppExitW
-FatalExit
-FileTimeToDosDateTime
-FileTimeToLocalFileTime
-FileTimeToSystemTime
-FillConsoleOutputAttribute
-FillConsoleOutputCharacterA
-FillConsoleOutputCharacterW
-FindAtomA
-FindAtomW
-FindClose
-FindCloseChangeNotification
-FindFirstChangeNotificationA
-FindFirstChangeNotificationW
-FindFirstFileA
-FindFirstFileExA
-FindFirstFileExW
-FindFirstFileW
-FindNextChangeNotification
-FindNextFileA
-FindNextFileW
-FindResourceA
-FindResourceExA
-FindResourceExW
-FindResourceW
-FlushConsoleInputBuffer
-FlushFileBuffers
-FlushInstructionCache
-FlushViewOfFile
-FoldStringA
-FoldStringW
-FormatMessageA
-FormatMessageW
-FreeConsole
-FreeEnvironmentStringsA
-FreeEnvironmentStringsW
-FreeLSCallback
-FreeLibrary
-FreeLibraryAndExitThread
-FreeResource
-FreeSLCallback
-GenerateConsoleCtrlEvent
-GetACP
-GetAtomNameA
-GetAtomNameW
-GetBinaryType
-GetBinaryTypeA
-GetBinaryTypeW
-GetCPInfo
-GetCPInfoExA
-GetCPInfoExW
-GetCalendarInfoA
-GetCalendarInfoW
-GetCommConfig
-GetCommMask
-GetCommModemStatus
-GetCommProperties
-GetCommState
-GetCommTimeouts
-GetCommandLineA
-GetCommandLineW
-GetCompressedFileSizeA
-GetCompressedFileSizeW
-GetComputerNameA
-GetComputerNameW
-GetConsoleCP
-GetConsoleCursorInfo
-GetConsoleMode
-GetConsoleOutputCP
-GetConsoleScreenBufferInfo
-GetConsoleTitleA
-GetConsoleTitleW
-GetCurrencyFormatA
-GetCurrencyFormatW
-GetCurrentDirectoryA
-GetCurrentDirectoryW
-GetCurrentProcess
-GetCurrentProcessId
-GetCurrentThread
-GetCurrentThreadId
-GetDateFormatA
-GetDateFormatW
-GetDaylightFlag
-GetDefaultCommConfigA
-GetDefaultCommConfigW
-GetDevicePowerState
-GetDiskFreeSpaceA
-GetDiskFreeSpaceExA
-GetDiskFreeSpaceExW
-GetDiskFreeSpaceW
-GetDriveTypeA
-GetDriveTypeW
-GetEnvironmentStrings
-GetEnvironmentStringsA
-GetEnvironmentStringsW
-GetEnvironmentVariableA
-GetEnvironmentVariableW
-GetErrorMode
-GetExitCodeProcess
-GetExitCodeThread
-GetFileAttributesA
-GetFileAttributesExA
-GetFileAttributesExW
-GetFileAttributesW
-GetFileInformationByHandle
-GetFileSize
-GetFileTime
-GetFileType
-GetFullPathNameA
-GetFullPathNameW
-GetGeoInfoA
-GetGeoInfoW
-GetHandleContext
-GetHandleInformation
-GetLSCallbackTarget
-GetLSCallbackTemplate
-GetLargestConsoleWindowSize
-GetLastError
-GetLocalTime
-GetLocaleInfoA
-GetLocaleInfoW
-GetLogicalDriveStringsA
-GetLogicalDriveStringsW
-GetLogicalDrives
-GetLongPathNameA
-GetLongPathNameW
-GetMailslotInfo
-GetModuleFileNameA
-GetModuleFileNameW
-GetModuleHandleA
-GetModuleHandleExA
-GetModuleHandleExW
-GetModuleHandleW
-GetNamedPipeHandleStateA
-GetNamedPipeHandleStateW
-GetNamedPipeInfo
-GetNumberFormatA
-GetNumberFormatW
-GetNumberOfConsoleInputEvents
-GetNumberOfConsoleMouseButtons
-GetOEMCP
-GetOverlappedResult
-GetPriorityClass
-GetPrivateProfileIntA
-GetPrivateProfileIntW
-GetPrivateProfileSectionA
-GetPrivateProfileSectionNamesA
-GetPrivateProfileSectionNamesW
-GetPrivateProfileSectionW
-GetPrivateProfileStringA
-GetPrivateProfileStringW
-GetPrivateProfileStructA
-GetPrivateProfileStructW
-GetProcAddress
-GetProcessAffinityMask
-GetProcessFlags
-GetProcessHeap
-GetProcessHeaps
-GetProcessPriorityBoost
-GetProcessShutdownParameters
-GetProcessTimes
-GetProcessVersion
-GetProcessWorkingSetSize
-GetProductName
-GetProfileIntA
-GetProfileIntW
-GetProfileSectionA
-GetProfileSectionW
-GetProfileStringA
-GetProfileStringW
-GetQueuedCompletionStatus
-GetSLCallbackTarget
-GetSLCallbackTemplate
-GetShortPathNameA
-GetShortPathNameW
-GetStartupInfoA
-GetStartupInfoW
-GetStdHandle
-GetStringTypeA
-GetStringTypeExA
-GetStringTypeExW
-GetStringTypeW
-GetSystemDefaultLCID
-GetSystemDefaultLangID
-GetSystemDefaultUILanguage
-GetSystemDirectoryA
-GetSystemDirectoryW
-GetSystemInfo
-GetSystemPowerStatus
-GetSystemTime
-GetSystemTimeAdjustment
-GetSystemTimeAsFileTime
-GetTapeParameters
-GetTapePosition
-GetTapeStatus
-GetTempFileNameA
-GetTempFileNameW
-GetTempPathA
-GetTempPathW
-GetThreadContext
-GetThreadLocale
-GetThreadPriority
-GetThreadPriorityBoost
-GetThreadSelectorEntry
-GetThreadTimes
-GetTickCount
-GetTimeFormatA
-GetTimeFormatW
-GetTimeZoneInformation
-GetUserDefaultLCID
-GetUserDefaultLangID
-GetUserDefaultUILanguage
-GetUserGeoID
-GetVersion
-GetVersionExA
-GetVersionExW
-GetVolumeInformationA
-GetVolumeInformationW
-GetWindowsDirectoryA
-GetWindowsDirectoryW
-GetWriteWatch
-GlobalAddAtomA
-GlobalAddAtomW
-GlobalAlloc
-GlobalCompact
-GlobalDeleteAtom
-GlobalFindAtomA
-GlobalFindAtomW
-GlobalFix
-GlobalFlags
-GlobalFree
-GlobalGetAtomNameA
-GlobalGetAtomNameW
-GlobalHandle
-GlobalLock
-GlobalMemoryStatus
-GlobalReAlloc
-GlobalSize
-GlobalUnWire
-GlobalUnfix
-GlobalUnlock
-GlobalWire
-Heap32First
-Heap32ListFirst
-Heap32ListNext
-Heap32Next
-HeapAlloc
-HeapCompact
-HeapCreate
-HeapDestroy
-HeapFree
-HeapLock
-HeapReAlloc
-HeapSetFlags
-HeapSize
-HeapUnlock
-HeapValidate
-HeapWalk
-InitAtomTable
-InitializeCriticalSection
-InitializeCriticalSectionAndSpinCount
-InterlockedCompareExchange
-InterlockedDecrement
-InterlockedExchange
-InterlockedExchangeAdd
-InterlockedIncrement
-InvalidateNLSCache
-IsBadCodePtr
-IsBadHugeReadPtr
-IsBadHugeWritePtr
-IsBadReadPtr
-IsBadStringPtrA
-IsBadStringPtrW
-IsBadWritePtr
-IsDBCSLeadByte
-IsDBCSLeadByteEx
-IsDebuggerPresent
-IsLSCallback
-IsProcessorFeaturePresent
-IsSLCallback
-IsSystemResumeAutomatic
-IsValidCodePage
-IsValidLanguageGroup
-IsValidLocale
-K32Thk1632Epilog
-K32Thk1632Prolog
-K32_NtCreateFile
-K32_RtlNtStatusToDosError
-LCMapStringA
-LCMapStringW
-LeaveCriticalSection
-LoadLibraryA
-LoadLibraryExA
-LoadLibraryExW
-LoadLibraryW
-LoadModule
-LoadResource
-LocalAlloc
-LocalCompact
-LocalFileTimeToFileTime
-LocalFlags
-LocalFree
-LocalHandle
-LocalLock
-LocalReAlloc
-LocalShrink
-LocalSize
-LocalUnlock
-LockFile
-LockFileEx
-LockResource
-MakeCriticalSectionGlobal
-MapHInstLS
-MapHInstLS_PN
-MapHInstSL
-MapHInstSL_PN
-MapHModuleLS
-MapHModuleSL
-MapLS
-MapSL
-MapSLFix
-MapViewOfFile
-MapViewOfFileEx
-Module32First
-Module32Next
-MoveFileA
-MoveFileExA
-MoveFileExW
-MoveFileW
-MulDiv
-MultiByteToWideChar
-NotifyNLSUserCache
-OpenEventA
-OpenEventW
-OpenFile
-OpenFileMappingA
-OpenFileMappingW
-OpenMutexA
-OpenMutexW
-OpenProcess
-OpenProfileUserMapping
-OpenSemaphoreA
-OpenSemaphoreW
-OpenThread
-OpenVxDHandle
-OpenWaitableTimerA
-OpenWaitableTimerW
-OutputDebugStringA
-OutputDebugStringW
-PeekConsoleInputA
-PeekConsoleInputW
-PeekNamedPipe
-PostQueuedCompletionStatus
-PrepareTape
-Process32First
-Process32Next
-PulseEvent
-PurgeComm
-QT_Thunk
-QueryDosDeviceA
-QueryDosDeviceW
-QueryNumberOfEventLogRecords
-QueryOldestEventLogRecord
-QueryPerformanceCounter
-QueryPerformanceFrequency
-QueueUserAPC
-RaiseException
-ReadConsoleA
-ReadConsoleInputA
-ReadConsoleInputW
-ReadConsoleOutputA
-ReadConsoleOutputAttribute
-ReadConsoleOutputCharacterA
-ReadConsoleOutputCharacterW
-ReadConsoleOutputW
-ReadConsoleW
-ReadDirectoryChangesW
-ReadFile
-ReadFileEx
-ReadFileScatter
-ReadProcessMemory
-RegisterServiceProcess
-RegisterSysMsgHandler
-ReinitializeCriticalSection
-ReleaseMutex
-ReleaseSemaphore
-RemoveDirectoryA
-RemoveDirectoryW
-RequestDeviceWakeup
-RequestWakeupLatency
-ResetEvent
-ResetNLSUserInfoCache
-ResetWriteWatch
-ResumeThread
-RtlAddFunctionTable
-RtlDeleteFunctionTable
-RtlFillMemory
-RtlInstallFunctionTableCallback
-RtlMoveMemory
-RtlUnwind
-RtlUnwindEx
-RtlZeroMemory
-SMapLS
-SMapLS_IP_EBP_12
-SMapLS_IP_EBP_16
-SMapLS_IP_EBP_20
-SMapLS_IP_EBP_24
-SMapLS_IP_EBP_28
-SMapLS_IP_EBP_32
-SMapLS_IP_EBP_36
-SMapLS_IP_EBP_40
-SMapLS_IP_EBP_8
-SUnMapLS
-SUnMapLS_IP_EBP_12
-SUnMapLS_IP_EBP_16
-SUnMapLS_IP_EBP_20
-SUnMapLS_IP_EBP_24
-SUnMapLS_IP_EBP_28
-SUnMapLS_IP_EBP_32
-SUnMapLS_IP_EBP_36
-SUnMapLS_IP_EBP_40
-SUnMapLS_IP_EBP_8
-ScrollConsoleScreenBufferA
-ScrollConsoleScreenBufferW
-SearchPathA
-SearchPathW
-SetCalendarInfoA
-SetCalendarInfoW
-SetCommBreak
-SetCommConfig
-SetCommMask
-SetCommState
-SetCommTimeouts
-SetComputerNameA
-SetComputerNameW
-SetConsoleActiveScreenBuffer
-SetConsoleCP
-SetConsoleCtrlHandler
-SetConsoleCursorInfo
-SetConsoleCursorPosition
-SetConsoleMode
-SetConsoleOutputCP
-SetConsoleScreenBufferSize
-SetConsoleTextAttribute
-SetConsoleTitleA
-SetConsoleTitleW
-SetConsoleWindowInfo
-SetCriticalSectionSpinCount
-SetCurrentDirectoryA
-SetCurrentDirectoryW
-SetDaylightFlag
-SetDefaultCommConfigA
-SetDefaultCommConfigW
-SetEndOfFile
-SetEnvironmentVariableA
-SetEnvironmentVariableW
-SetErrorMode
-SetEvent
-SetFileApisToANSI
-SetFileApisToOEM
-SetFileAttributesA
-SetFileAttributesW
-SetFilePointer
-SetFilePointerEx
-SetFileTime
-SetHandleContext
-SetHandleCount
-SetHandleInformation
-SetLastError
-SetLocalTime
-SetLocaleInfoA
-SetLocaleInfoW
-SetMailslotInfo
-SetMessageWaitingIndicator
-SetNamedPipeHandleState
-SetPriorityClass
-SetProcessAffinityMask
-SetProcessPriorityBoost
-SetProcessShutdownParameters
-SetProcessWorkingSetSize
-SetStdHandle
-SetSystemPowerState
-SetSystemTime
-SetSystemTimeAdjustment
-SetTapeParameters
-SetTapePosition
-SetThreadAffinityMask
-SetThreadContext
-SetThreadExecutionState
-SetThreadIdealProcessor
-SetThreadLocale
-SetThreadPriority
-SetThreadPriorityBoost
-SetTimeZoneInformation
-SetUnhandledExceptionFilter
-SetUserGeoID
-SetVolumeLabelA
-SetVolumeLabelW
-SetWaitableTimer
-SetupComm
-SignalObjectAndWait
-SignalSysMsgHandlers
-SizeofResource
-Sleep
-SleepEx
-SuspendThread
-SwitchToFiber
-SwitchToThread
-SystemTimeToFileTime
-SystemTimeToTzSpecificLocalTime
-TerminateProcess
-TerminateThread
-Thread32First
-Thread32Next
-ThunkConnect32
-TlsAlloc
-TlsAllocInternal
-TlsFree
-TlsFreeInternal
-TlsGetValue
-TlsSetValue
-Toolhelp32ReadProcessMemory
-TransactNamedPipe
-TransmitCommChar
-TryEnterCriticalSection
-UTRegister
-UTUnRegister
-UnMapLS
-UnMapSLFixArray
-UnhandledExceptionFilter
-UninitializeCriticalSection
-UnlockFile
-UnlockFileEx
-UnmapViewOfFile
-UpdateResourceA
-UpdateResourceW
-VerLanguageNameA
-VerLanguageNameW
-VerSetConditionMask
-VerifyVersionInfoA
-VerifyVersionInfoW
-VirtualAlloc
-VirtualAllocEx
-VirtualFree
-VirtualFreeEx
-VirtualLock
-VirtualProtect
-VirtualProtectEx
-VirtualQuery
-VirtualQueryEx
-VirtualUnlock
-WaitCommEvent
-WaitForDebugEvent
-WaitForMultipleObjects
-WaitForMultipleObjectsEx
-WaitForSingleObject
-WaitForSingleObjectEx
-WaitNamedPipeA
-WaitNamedPipeW
-WideCharToMultiByte
-WinExec
-WriteConsoleA
-WriteConsoleInputA
-WriteConsoleInputW
-WriteConsoleOutputA
-WriteConsoleOutputAttribute
-WriteConsoleOutputCharacterA
-WriteConsoleOutputCharacterW
-WriteConsoleOutputW
-WriteConsoleW
-WriteFile
-WriteFileEx
-WriteFileGather
-WritePrivateProfileSectionA
-WritePrivateProfileSectionW
-WritePrivateProfileStringA
-WritePrivateProfileStringW
-WritePrivateProfileStructA
-WritePrivateProfileStructW
-WriteProcessMemory
-WriteProfileSectionA
-WriteProfileSectionW
-WriteProfileStringA
-WriteProfileStringW
-WriteTapemark
-_DebugOut
-_DebugPrintf
-_hread
-_hwrite
-_lclose
-_lcreat
-_llseek
-_lopen
-_lread
-_lwrite
-dprintf
-lstrcat
-lstrcatA
-lstrcatW
-lstrcmp
-lstrcmpA
-lstrcmpW
-lstrcmpi
-lstrcmpiA
-lstrcmpiW
-lstrcpy
-lstrcpyA
-lstrcpyW
-lstrcpyn
-lstrcpynA
-lstrcpynW
-lstrlen
-lstrlenA
-lstrlenW
diff --git a/tinycc/win32/lib/msvcrt.def b/tinycc/win32/lib/msvcrt.def
deleted file mode 100644
index e8f6ab9..0000000
--- a/tinycc/win32/lib/msvcrt.def
+++ /dev/null
@@ -1,1320 +0,0 @@
-LIBRARY msvcrt.dll
-
-EXPORTS
-??0__non_rtti_object@@QEAA@AEBV0@@Z
-??0__non_rtti_object@@QEAA@PEBD@Z
-??0bad_cast@@AAE@PBQBD@Z
-??0bad_cast@@AEAA@PEBQEBD@Z
-??0bad_cast@@QAE@ABQBD@Z
-??0bad_cast@@QEAA@AEBQEBD@Z
-??0bad_cast@@QEAA@AEBV0@@Z
-??0bad_cast@@QEAA@PEBD@Z
-??0bad_typeid@@QEAA@AEBV0@@Z
-??0bad_typeid@@QEAA@PEBD@Z
-??0exception@@QEAA@AEBQEBD@Z
-??0exception@@QEAA@AEBQEBDH@Z
-??0exception@@QEAA@AEBV0@@Z
-??0exception@@QEAA@XZ
-??1__non_rtti_object@@UEAA@XZ
-??1bad_cast@@UEAA@XZ
-??1bad_typeid@@UEAA@XZ
-??1exception@@UEAA@XZ
-??1type_info@@UEAA@XZ
-??2@YAPEAX_K@Z
-??2@YAPEAX_KHPEBDH@Z
-??3@YAXPEAX@Z
-??4__non_rtti_object@@QEAAAEAV0@AEBV0@@Z
-??4bad_cast@@QEAAAEAV0@AEBV0@@Z
-??4bad_typeid@@QEAAAEAV0@AEBV0@@Z
-??4exception@@QEAAAEAV0@AEBV0@@Z
-??8type_info@@QEBAHAEBV0@@Z
-??9type_info@@QEBAHAEBV0@@Z
-??_7__non_rtti_object@@6B@
-??_7bad_cast@@6B@
-??_7bad_typeid@@6B@
-??_7exception@@6B@
-??_Fbad_cast@@QEAAXXZ
-??_Fbad_typeid@@QEAAXXZ
-??_U@YAPEAX_K@Z
-??_U@YAPEAX_KHPEBDH@Z
-??_V@YAXPEAX@Z
-?_query_new_handler@@YAP6AH_K@ZXZ
-?_query_new_mode@@YAHXZ
-?_set_new_handler@@YAP6AH_K@ZP6AH0@Z@Z
-?_set_new_mode@@YAHH@Z
-?_set_se_translator@@YAP6AXIPEAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z
-?before@type_info@@QEBAHAEBV1@@Z
-?name@type_info@@QEBAPEBDXZ
-?raw_name@type_info@@QEBAPEBDXZ
-?set_new_handler@@YAP6AXXZP6AXXZ@Z
-?set_terminate@@YAP6AXXZP6AXXZ@Z
-?set_unexpected@@YAP6AXXZP6AXXZ@Z
-?terminate@@YAXXZ
-?unexpected@@YAXXZ
-?what@exception@@UEBAPEBDXZ
-_CrtCheckMemory
-_CrtDbgBreak
-_CrtDbgReport
-_CrtDbgReportV
-_CrtDbgReportW
-_CrtDbgReportWV
-_CrtDoForAllClientObjects
-_CrtDumpMemoryLeaks
-_CrtIsMemoryBlock
-_CrtIsValidHeapPointer
-_CrtIsValidPointer
-_CrtMemCheckpoint
-_CrtMemDifference
-_CrtMemDumpAllObjectsSince
-_CrtMemDumpStatistics
-_CrtReportBlockType
-_CrtSetAllocHook
-_CrtSetBreakAlloc
-_CrtSetDbgBlockType
-_CrtSetDbgFlag
-_CrtSetDumpClient
-_CrtSetReportFile
-_CrtSetReportHook
-_CrtSetReportHook2
-_CrtSetReportMode
-_CxxThrowException
-_Getdays
-_Getmonths
-_Gettnames
-_HUGE
-_Strftime
-_W_Getdays
-_W_Getmonths
-_W_Gettnames
-_Wcsftime
-_XcptFilter
-__AdjustPointer
-__C_specific_handler
-__CppXcptFilter
-__CxxFrameHandler
-__CxxFrameHandler2
-__CxxFrameHandler3
-__DestructExceptionObject
-__ExceptionPtrAssign
-__ExceptionPtrCompare
-__ExceptionPtrCopy
-__ExceptionPtrCopyException
-__ExceptionPtrCreate
-__ExceptionPtrCurrentException
-__ExceptionPtrDestroy
-__ExceptionPtrRethrow
-__ExceptionPtrSwap
-__ExceptionPtrToBool
-__RTCastToVoid
-__RTDynamicCast
-__RTtypeid
-__STRINGTOLD
-___lc_codepage_func
-___lc_collate_cp_func
-___lc_handle_func
-___mb_cur_max_func
-___setlc_active_func
-___unguarded_readlc_active_add_func
-__argc
-__argv
-__badioinfo
-__crtCompareStringA
-__crtCompareStringW
-__crtGetLocaleInfoW
-__crtGetStringTypeW
-__crtLCMapStringA
-__crtLCMapStringW
-__daylight
-__dllonexit
-__doserrno
-__dstbias
-__fpecode
-__getmainargs
-__initenv
-__iob_func
-__isascii
-__iscsym
-__iscsymf
-__lc_codepage
-__lc_collate_cp
-__lc_handle
-__lconv_init
-__mb_cur_max
-__pctype_func
-__pioinfo
-__pwctype_func
-__pxcptinfoptrs
-__set_app_type
-__setlc_active
-__setusermatherr
-__strncnt
-__threadhandle
-__threadid
-__toascii
-__unDName
-__unDNameEx
-__uncaught_exception
-__unguarded_readlc_active
-__wargv
-__wcserror
-__wcserror_s
-__wcsncnt
-__wgetmainargs
-__winitenv
-_abs64
-_access
-_access_s
-_acmdln
-_aexit_rtn
-_aligned_free
-_aligned_free_dbg
-_aligned_malloc
-_aligned_malloc_dbg
-_aligned_offset_malloc
-_aligned_offset_malloc_dbg
-_aligned_offset_realloc
-_aligned_offset_realloc_dbg
-_aligned_realloc
-_aligned_realloc_dbg
-_amsg_exit
-_assert
-_atodbl
-_atodbl_l
-_atof_l
-_atoflt_l
-_atoi64
-_atoi64_l
-_atoi_l
-_atol_l
-_atoldbl
-_atoldbl_l
-_beep
-_beginthread
-_beginthreadex
-_c_exit
-_cabs
-_callnewh
-_calloc_dbg
-_cexit
-_cgets
-_cgets_s
-_cgetws
-_cgetws_s
-_chdir
-_chdrive
-_chgsign
-_chgsignf
-_chmod
-_chsize
-_chsize_s
-_chvalidator
-_chvalidator_l
-_clearfp
-_close
-_commit
-_commode
-_control87
-_controlfp
-_controlfp_s
-_copysign
-_copysignf
-_cprintf
-_cprintf_l
-_cprintf_p
-_cprintf_p_l
-_cprintf_s
-_cprintf_s_l
-_cputs
-_cputws
-_creat
-_create_locale
-_crtAssertBusy
-_crtBreakAlloc
-_crtDbgFlag
-_cscanf
-_cscanf_l
-_cscanf_s
-_cscanf_s_l
-_ctime32
-_ctime32_s
-_ctime64
-_ctime64_s
-_ctype
-_cwait
-_cwprintf
-_cwprintf_l
-_cwprintf_p
-_cwprintf_p_l
-_cwprintf_s
-_cwprintf_s_l
-_cwscanf
-_cwscanf_l
-_cwscanf_s
-_cwscanf_s_l
-_daylight
-_difftime32
-_difftime64
-_dstbias
-_dup
-_dup2
-_ecvt
-_ecvt_s
-_endthread
-_endthreadex
-_environ
-_eof
-_errno
-_execl
-_execle
-_execlp
-_execlpe
-_execv
-_execve
-_execvp
-_execvpe
-_exit
-_expand
-_expand_dbg
-_fcloseall
-_fcvt
-_fcvt_s
-_fdopen
-_fgetchar
-_fgetwchar
-_filbuf
-_fileinfo
-_filelength
-_filelengthi64
-_fileno
-_findclose
-_findfirst
-_findfirst64
-_findfirsti64
-_findnext
-_findnext64
-_findnexti64
-_finite
-_finitef
-_flsbuf
-_flushall
-_fmode
-_fpclass
-_fpclassf
-_fpreset
-_fprintf_l
-_fprintf_p
-_fprintf_p_l
-_fprintf_s_l
-_fputchar
-_fputwchar
-_free_dbg
-_free_locale
-_freea
-_freea_s
-_fscanf_l
-_fscanf_s_l
-_fseeki64
-_fsopen
-_fstat
-_fstat64
-_fstati64
-_ftime
-_ftime32
-_ftime32_s
-_ftime64
-_ftime64_s
-_fullpath
-_fullpath_dbg
-_futime
-_futime32
-_futime64
-_fwprintf_l
-_fwprintf_p
-_fwprintf_p_l
-_fwprintf_s_l
-_fwscanf_l
-_fwscanf_s_l
-_gcvt
-_gcvt_s
-_get_current_locale
-_get_doserrno
-_get_environ
-_get_errno
-_get_fileinfo
-_get_fmode
-_get_heap_handle
-_get_osfhandle
-_get_osplatform
-_get_osver
-_get_output_format
-_get_pgmptr
-_get_sbh_threshold
-_get_wenviron
-_get_winmajor
-_get_winminor
-_get_winver
-_get_wpgmptr
-_getch
-_getche
-_getcwd
-_getdcwd
-_getdiskfree
-_getdrive
-_getdrives
-_getmaxstdio
-_getmbcp
-_getpid
-_getsystime
-_getw
-_getwch
-_getwche
-_getws
-_gmtime32
-_gmtime32_s
-_gmtime64
-_gmtime64_s
-_heapchk
-_heapmin
-_heapset
-_heapwalk
-_hypot
-_hypotf
-_i64toa
-_i64toa_s
-_i64tow
-_i64tow_s
-_initterm
-_initterm_e
-_invalid_parameter
-_iob
-_isalnum_l
-_isalpha_l
-_isatty
-_iscntrl_l
-_isctype
-_isctype_l
-_isdigit_l
-_isgraph_l
-_isleadbyte_l
-_islower_l
-_ismbbalnum
-_ismbbalnum_l
-_ismbbalpha
-_ismbbalpha_l
-_ismbbgraph
-_ismbbgraph_l
-_ismbbkalnum
-_ismbbkalnum_l
-_ismbbkana
-_ismbbkana_l
-_ismbbkprint
-_ismbbkprint_l
-_ismbbkpunct
-_ismbbkpunct_l
-_ismbblead
-_ismbblead_l
-_ismbbprint
-_ismbbprint_l
-_ismbbpunct
-_ismbbpunct_l
-_ismbbtrail
-_ismbbtrail_l
-_ismbcalnum
-_ismbcalnum_l
-_ismbcalpha
-_ismbcalpha_l
-_ismbcdigit
-_ismbcdigit_l
-_ismbcgraph
-_ismbcgraph_l
-_ismbchira
-_ismbchira_l
-_ismbckata
-_ismbckata_l
-_ismbcl0
-_ismbcl0_l
-_ismbcl1
-_ismbcl1_l
-_ismbcl2
-_ismbcl2_l
-_ismbclegal
-_ismbclegal_l
-_ismbclower
-_ismbclower_l
-_ismbcprint
-_ismbcprint_l
-_ismbcpunct
-_ismbcpunct_l
-_ismbcspace
-_ismbcspace_l
-_ismbcsymbol
-_ismbcsymbol_l
-_ismbcupper
-_ismbcupper_l
-_ismbslead
-_ismbslead_l
-_ismbstrail
-_ismbstrail_l
-_isnan
-_isnanf
-_isprint_l
-_isspace_l
-_isupper_l
-_iswalnum_l
-_iswalpha_l
-_iswcntrl_l
-_iswctype_l
-_iswdigit_l
-_iswgraph_l
-_iswlower_l
-_iswprint_l
-_iswpunct_l
-_iswspace_l
-_iswupper_l
-_iswxdigit_l
-_isxdigit_l
-_itoa
-_itoa_s
-_itow
-_itow_s
-_j0
-_j1
-_jn
-_kbhit
-_lfind
-_lfind_s
-_local_unwind
-_localtime32
-_localtime32_s
-_localtime64
-_localtime64_s
-_lock
-_locking
-_logb
-_logbf
-_lrotl
-_lrotr
-_lsearch
-_lsearch_s
-_lseek
-_lseeki64
-_ltoa
-_ltoa_s
-_ltow
-_ltow_s
-_makepath
-_makepath_s
-_malloc_dbg
-_mbbtombc
-_mbbtombc_l
-_mbbtype
-_mbcasemap
-_mbccpy
-_mbccpy_l
-_mbccpy_s
-_mbccpy_s_l
-_mbcjistojms
-_mbcjistojms_l
-_mbcjmstojis
-_mbcjmstojis_l
-_mbclen
-_mbclen_l
-_mbctohira
-_mbctohira_l
-_mbctokata
-_mbctokata_l
-_mbctolower
-_mbctolower_l
-_mbctombb
-_mbctombb_l
-_mbctoupper
-_mbctoupper_l
-_mbctype
-_mblen_l
-_mbsbtype
-_mbsbtype_l
-_mbscat
-_mbscat_s
-_mbscat_s_l
-_mbschr
-_mbschr_l
-_mbscmp
-_mbscmp_l
-_mbscoll
-_mbscoll_l
-_mbscpy
-_mbscpy_s
-_mbscpy_s_l
-_mbscspn
-_mbscspn_l
-_mbsdec
-_mbsdec_l
-_mbsdup
-_mbsicmp
-_mbsicmp_l
-_mbsicoll
-_mbsicoll_l
-_mbsinc
-_mbsinc_l
-_mbslen
-_mbslen_l
-_mbslwr
-_mbslwr_l
-_mbslwr_s
-_mbslwr_s_l
-_mbsnbcat
-_mbsnbcat_l
-_mbsnbcat_s
-_mbsnbcat_s_l
-_mbsnbcmp
-_mbsnbcmp_l
-_mbsnbcnt
-_mbsnbcnt_l
-_mbsnbcoll
-_mbsnbcoll_l
-_mbsnbcpy
-_mbsnbcpy_l
-_mbsnbcpy_s
-_mbsnbcpy_s_l
-_mbsnbicmp
-_mbsnbicmp_l
-_mbsnbicoll
-_mbsnbicoll_l
-_mbsnbset
-_mbsnbset_l
-_mbsnbset_s
-_mbsnbset_s_l
-_mbsncat
-_mbsncat_l
-_mbsncat_s
-_mbsncat_s_l
-_mbsnccnt
-_mbsnccnt_l
-_mbsncmp
-_mbsncmp_l
-_mbsncoll
-_mbsncoll_l
-_mbsncpy
-_mbsncpy_l
-_mbsncpy_s
-_mbsncpy_s_l
-_mbsnextc
-_mbsnextc_l
-_mbsnicmp
-_mbsnicmp_l
-_mbsnicoll
-_mbsnicoll_l
-_mbsninc
-_mbsninc_l
-_mbsnlen
-_mbsnlen_l
-_mbsnset
-_mbsnset_l
-_mbsnset_s
-_mbsnset_s_l
-_mbspbrk
-_mbspbrk_l
-_mbsrchr
-_mbsrchr_l
-_mbsrev
-_mbsrev_l
-_mbsset
-_mbsset_l
-_mbsset_s
-_mbsset_s_l
-_mbsspn
-_mbsspn_l
-_mbsspnp
-_mbsspnp_l
-_mbsstr
-_mbsstr_l
-_mbstok
-_mbstok_l
-_mbstok_s
-_mbstok_s_l
-_mbstowcs_l
-_mbstowcs_s_l
-_mbstrlen
-_mbstrlen_l
-_mbstrnlen
-_mbstrnlen_l
-_mbsupr
-_mbsupr_l
-_mbsupr_s
-_mbsupr_s_l
-_mbtowc_l
-_memccpy
-_memicmp
-_memicmp_l
-_mkdir
-_mkgmtime
-_mkgmtime32
-_mkgmtime64
-_mktemp
-_mktemp_s
-_mktime32
-_mktime64
-_msize
-_msize_dbg
-_nextafter
-_nextafterf
-_onexit
-_open
-_open_osfhandle
-_osplatform
-_osver
-_pclose
-_pctype
-_pgmptr
-_pipe
-_popen
-_printf_l
-_printf_p
-_printf_p_l
-_printf_s_l
-_purecall
-_putch
-_putenv
-_putenv_s
-_putw
-_putwch
-_putws
-_pwctype
-_read
-_realloc_dbg
-_resetstkoflw
-_rmdir
-_rmtmp
-_rotl
-_rotl64
-_rotr
-_rotr64
-_scalb
-_scalbf
-_scanf_l
-_scanf_s_l
-_scprintf
-_scprintf_l
-_scprintf_p_l
-_scwprintf
-_scwprintf_l
-_scwprintf_p_l
-_searchenv
-_searchenv_s
-_set_controlfp
-_set_doserrno
-_set_errno
-_set_error_mode
-_set_fileinfo
-_set_fmode
-_set_output_format
-_set_sbh_threshold
-_seterrormode
-_setjmp
-_setjmpex
-_setmaxstdio
-_setmbcp
-_setmode
-_setsystime
-_sleep
-_snprintf
-_snprintf_c
-_snprintf_c_l
-_snprintf_l
-_snprintf_s
-_snprintf_s_l
-_snscanf
-_snscanf_l
-_snscanf_s
-_snscanf_s_l
-_snwprintf
-_snwprintf_l
-_snwprintf_s
-_snwprintf_s_l
-_snwscanf
-_snwscanf_l
-_snwscanf_s
-_snwscanf_s_l
-_sopen
-_sopen_s
-_spawnl
-_spawnle
-_spawnlp
-_spawnlpe
-_spawnv
-_spawnve
-_spawnvp
-_spawnvpe
-_splitpath
-_splitpath_s
-_sprintf_l
-_sprintf_p_l
-_sprintf_s_l
-_sscanf_l
-_sscanf_s_l
-_stat
-_stat64
-_stati64
-_statusfp
-_strcmpi
-_strcoll_l
-_strdate
-_strdate_s
-_strdup
-_strdup_dbg
-_strerror
-_strerror_s
-_stricmp
-_stricmp_l
-_stricoll
-_stricoll_l
-_strlwr
-_strlwr_l
-_strlwr_s
-_strlwr_s_l
-_strncoll
-_strncoll_l
-_strnicmp
-_strnicmp_l
-_strnicoll
-_strnicoll_l
-_strnset
-_strnset_s
-_strrev
-_strset
-_strset_s
-_strtime
-_strtime_s
-_strtod_l
-_strtoi64
-_strtoi64_l
-_strtol_l
-_strtoui64
-_strtoui64_l
-_strtoul_l
-_strupr
-_strupr_l
-_strupr_s
-_strupr_s_l
-_strxfrm_l
-_swab
-_swprintf
-_swprintf_c
-_swprintf_c_l
-_swprintf_p_l
-_swprintf_s_l
-_swscanf_l
-_swscanf_s_l
-_sys_errlist
-_sys_nerr
-_tell
-_telli64
-_tempnam
-_tempnam_dbg
-_time32
-_time64
-_timezone
-_tolower
-_tolower_l
-_toupper
-_toupper_l
-_towlower_l
-_towupper_l
-_tzname
-_tzset
-_ui64toa
-_ui64toa_s
-_ui64tow
-_ui64tow_s
-_ultoa
-_ultoa_s
-_ultow
-_ultow_s
-_umask
-_umask_s
-_ungetch
-_ungetwch
-_unlink
-_unlock
-_utime
-_utime32
-_utime64
-_vcprintf
-_vcprintf_l
-_vcprintf_p
-_vcprintf_p_l
-_vcprintf_s
-_vcprintf_s_l
-_vcwprintf
-_vcwprintf_l
-_vcwprintf_p
-_vcwprintf_p_l
-_vcwprintf_s
-_vcwprintf_s_l
-_vfprintf_l
-_vfprintf_p
-_vfprintf_p_l
-_vfprintf_s_l
-_vfwprintf_l
-_vfwprintf_p
-_vfwprintf_p_l
-_vfwprintf_s_l
-_vprintf_l
-_vprintf_p
-_vprintf_p_l
-_vprintf_s_l
-_vscprintf
-_vscprintf_l
-_vscprintf_p_l
-_vscwprintf
-_vscwprintf_l
-_vscwprintf_p_l
-_vsnprintf
-_vsnprintf_c
-_vsnprintf_c_l
-_vsnprintf_l
-_vsnprintf_s
-_vsnprintf_s_l
-_vsnwprintf
-_vsnwprintf_l
-_vsnwprintf_s
-_vsnwprintf_s_l
-_vsprintf_l
-_vsprintf_p
-_vsprintf_p_l
-_vsprintf_s_l
-_vswprintf
-_vswprintf_c
-_vswprintf_c_l
-_vswprintf_l
-_vswprintf_p_l
-_vswprintf_s_l
-_vwprintf_l
-_vwprintf_p
-_vwprintf_p_l
-_vwprintf_s_l
-_waccess
-_waccess_s
-_wasctime
-_wasctime_s
-_wassert
-_wchdir
-_wchmod
-_wcmdln
-_wcreat
-_wcscoll_l
-_wcsdup
-_wcsdup_dbg
-_wcserror
-_wcserror_s
-_wcsftime_l
-_wcsicmp
-_wcsicmp_l
-_wcsicoll
-_wcsicoll_l
-_wcslwr
-_wcslwr_l
-_wcslwr_s
-_wcslwr_s_l
-_wcsncoll
-_wcsncoll_l
-_wcsnicmp
-_wcsnicmp_l
-_wcsnicoll
-_wcsnicoll_l
-_wcsnset
-_wcsnset_s
-_wcsrev
-_wcsset
-_wcsset_s
-_wcstod_l
-_wcstoi64
-_wcstoi64_l
-_wcstol_l
-_wcstombs_l
-_wcstombs_s_l
-_wcstoui64
-_wcstoui64_l
-_wcstoul_l
-_wcsupr
-_wcsupr_l
-_wcsupr_s
-_wcsupr_s_l
-_wcsxfrm_l
-_wctime
-_wctime32
-_wctime32_s
-_wctime64
-_wctime64_s
-_wctomb_l
-_wctomb_s_l
-_wctype
-_wenviron
-_wexecl
-_wexecle
-_wexeclp
-_wexeclpe
-_wexecv
-_wexecve
-_wexecvp
-_wexecvpe
-_wfdopen
-_wfindfirst
-_wfindfirst64
-_wfindfirsti64
-_wfindnext
-_wfindnext64
-_wfindnexti64
-_wfopen
-_wfopen_s
-_wfreopen
-_wfreopen_s
-_wfsopen
-_wfullpath
-_wfullpath_dbg
-_wgetcwd
-_wgetdcwd
-_wgetenv
-_wgetenv_s
-_winmajor
-_winminor
-_winput_s
-_winver
-_wmakepath
-_wmakepath_s
-_wmkdir
-_wmktemp
-_wmktemp_s
-_wopen
-_woutput_s
-_wperror
-_wpgmptr
-_wpopen
-_wprintf_l
-_wprintf_p
-_wprintf_p_l
-_wprintf_s_l
-_wputenv
-_wputenv_s
-_wremove
-_wrename
-_write
-_wrmdir
-_wscanf_l
-_wscanf_s_l
-_wsearchenv
-_wsearchenv_s
-_wsetlocale
-_wsopen
-_wsopen_s
-_wspawnl
-_wspawnle
-_wspawnlp
-_wspawnlpe
-_wspawnv
-_wspawnve
-_wspawnvp
-_wspawnvpe
-_wsplitpath
-_wsplitpath_s
-_wstat
-_wstat64
-_wstati64
-_wstrdate
-_wstrdate_s
-_wstrtime
-_wstrtime_s
-_wsystem
-_wtempnam
-_wtempnam_dbg
-_wtmpnam
-_wtmpnam_s
-_wtof
-_wtof_l
-_wtoi
-_wtoi64
-_wtoi64_l
-_wtoi_l
-_wtol
-_wtol_l
-_wunlink
-_wutime
-_wutime32
-_wutime64
-_y0
-_y1
-_yn
-abort
-abs
-acos
-acosf
-asctime
-asctime_s
-asin
-asinf
-atan
-atan2
-atan2f
-atanf
-atexit
-atof
-atoi
-atol
-bsearch
-bsearch_s
-btowc
-calloc
-ceil
-ceilf
-clearerr
-clearerr_s
-clock
-cos
-cosf
-cosh
-coshf
-ctime
-difftime
-div
-exit
-exp
-expf
-fabs
-fclose
-feof
-ferror
-fflush
-fgetc
-fgetpos
-fgets
-fgetwc
-fgetws
-floor
-floorf
-fmod
-fmodf
-fopen
-fopen_s
-fprintf
-fprintf_s
-fputc
-fputs
-fputwc
-fputws
-fread
-free
-freopen
-freopen_s
-frexp
-fscanf
-fscanf_s
-fseek
-fsetpos
-ftell
-fwprintf
-fwprintf_s
-fwrite
-fwscanf
-fwscanf_s
-getc
-getchar
-getenv
-getenv_s
-gets
-getwc
-getwchar
-gmtime
-is_wctype
-isalnum
-isalpha
-iscntrl
-isdigit
-isgraph
-isleadbyte
-islower
-isprint
-ispunct
-isspace
-isupper
-iswalnum
-iswalpha
-iswascii
-iswcntrl
-iswctype
-iswdigit
-iswgraph
-iswlower
-iswprint
-iswpunct
-iswspace
-iswupper
-iswxdigit
-isxdigit
-labs
-ldexp
-ldiv
-localeconv
-localtime
-log
-log10
-log10f
-logf
-longjmp
-malloc
-mblen
-mbrlen
-mbrtowc
-mbsdup_dbg
-mbsrtowcs
-mbsrtowcs_s
-mbstowcs
-mbstowcs_s
-mbtowc
-memchr
-memcmp
-memcpy
-memcpy_s
-memmove
-memmove_s
-memset
-mktime
-modf
-modff
-perror
-pow
-powf
-printf
-printf_s
-putc
-putchar
-puts
-putwc
-putwchar
-qsort
-qsort_s
-raise
-rand
-rand_s
-realloc
-remove
-rename
-rewind
-scanf
-scanf_s
-setbuf
-setjmp
-setlocale
-setvbuf
-signal
-sin
-sinf
-sinh
-sinhf
-sprintf
-sprintf_s
-sqrt
-sqrtf
-srand
-sscanf
-sscanf_s
-strcat
-strcat_s
-strchr
-strcmp
-strcoll
-strcpy
-strcpy_s
-strcspn
-strerror
-strerror_s
-strftime
-strlen
-strncat
-strncat_s
-strncmp
-strncpy
-strncpy_s
-strnlen
-strpbrk
-strrchr
-strspn
-strstr
-strtod
-strtok
-strtok_s
-strtol
-strtoul
-strxfrm
-swprintf
-swprintf_s
-swscanf
-swscanf_s
-system
-tan
-tanf
-tanh
-tanhf
-time
-tmpfile
-tmpfile_s
-tmpnam
-tmpnam_s
-tolower
-toupper
-towlower
-towupper
-ungetc
-ungetwc
-utime
-vfprintf
-vfprintf_s
-vfwprintf
-vfwprintf_s
-vprintf
-vprintf_s
-vsnprintf
-vsprintf
-vsprintf_s
-vswprintf
-vswprintf_s
-vwprintf
-vwprintf_s
-wcrtomb
-wcrtomb_s
-wcscat
-wcscat_s
-wcschr
-wcscmp
-wcscoll
-wcscpy
-wcscpy_s
-wcscspn
-wcsftime
-wcslen
-wcsncat
-wcsncat_s
-wcsncmp
-wcsncpy
-wcsncpy_s
-wcsnlen
-wcspbrk
-wcsrchr
-wcsrtombs
-wcsrtombs_s
-wcsspn
-wcsstr
-wcstod
-wcstok
-wcstok_s
-wcstol
-wcstombs
-wcstombs_s
-wcstoul
-wcsxfrm
-wctob
-wctomb
-wctomb_s
-wprintf
-wprintf_s
-wscanf
-wscanf_s
diff --git a/tinycc/win32/lib/user32.def b/tinycc/win32/lib/user32.def
deleted file mode 100644
index a034dac..0000000
--- a/tinycc/win32/lib/user32.def
+++ /dev/null
@@ -1,658 +0,0 @@
-LIBRARY user32.dll
-
-EXPORTS
-ActivateKeyboardLayout
-AdjustWindowRect
-AdjustWindowRectEx
-AlignRects
-AllowSetForegroundWindow
-AnimateWindow
-AnyPopup
-AppendMenuA
-AppendMenuW
-ArrangeIconicWindows
-AttachThreadInput
-BeginDeferWindowPos
-BeginPaint
-BlockInput
-BringWindowToTop
-BroadcastSystemMessage
-BroadcastSystemMessageA
-BroadcastSystemMessageW
-CalcChildScroll
-CallMsgFilter
-CallMsgFilterA
-CallMsgFilterW
-CallNextHookEx
-CallWindowProcA
-CallWindowProcW
-CascadeChildWindows
-CascadeWindows
-ChangeClipboardChain
-ChangeDisplaySettingsA
-ChangeDisplaySettingsExA
-ChangeDisplaySettingsExW
-ChangeDisplaySettingsW
-ChangeMenuA
-ChangeMenuW
-CharLowerA
-CharLowerBuffA
-CharLowerBuffW
-CharLowerW
-CharNextA
-CharNextExA
-CharNextExW
-CharNextW
-CharPrevA
-CharPrevExA
-CharPrevExW
-CharPrevW
-CharToOemA
-CharToOemBuffA
-CharToOemBuffW
-CharToOemW
-CharUpperA
-CharUpperBuffA
-CharUpperBuffW
-CharUpperW
-CheckDlgButton
-CheckMenuItem
-CheckMenuRadioItem
-CheckRadioButton
-ChildWindowFromPoint
-ChildWindowFromPointEx
-ClientThreadConnect
-ClientToScreen
-ClipCursor
-CloseClipboard
-CloseDesktop
-CloseWindow
-CloseWindowStation
-CopyAcceleratorTableA
-CopyAcceleratorTableW
-CopyIcon
-CopyImage
-CopyRect
-CountClipboardFormats
-CreateAcceleratorTableA
-CreateAcceleratorTableW
-CreateCaret
-CreateCursor
-CreateDesktopA
-CreateDesktopW
-CreateDialogIndirectParamA
-CreateDialogIndirectParamW
-CreateDialogParamA
-CreateDialogParamW
-CreateIcon
-CreateIconFromResource
-CreateIconFromResourceEx
-CreateIconIndirect
-CreateMDIWindowA
-CreateMDIWindowW
-CreateMenu
-CreatePopupMenu
-CreateWindowExA
-CreateWindowExW
-CreateWindowStationA
-CreateWindowStationW
-DdeAbandonTransaction
-DdeAccessData
-DdeAddData
-DdeClientTransaction
-DdeCmpStringHandles
-DdeConnect
-DdeConnectList
-DdeCreateDataHandle
-DdeCreateStringHandleA
-DdeCreateStringHandleW
-DdeDisconnect
-DdeDisconnectList
-DdeEnableCallback
-DdeFreeDataHandle
-DdeFreeStringHandle
-DdeGetData
-DdeGetLastError
-DdeImpersonateClient
-DdeInitializeA
-DdeInitializeW
-DdeKeepStringHandle
-DdeNameService
-DdePostAdvise
-DdeQueryConvInfo
-DdeQueryNextServer
-DdeQueryStringA
-DdeQueryStringW
-DdeReconnect
-DdeSetQualityOfService
-DdeSetUserHandle
-DdeUnaccessData
-DdeUninitialize
-DefDlgProcA
-DefDlgProcW
-DefFrameProcA
-DefFrameProcW
-DefMDIChildProcA
-DefMDIChildProcW
-DefWindowProcA
-DefWindowProcW
-DeferWindowPos
-DeleteMenu
-DestroyAcceleratorTable
-DestroyCaret
-DestroyCursor
-DestroyIcon
-DestroyMenu
-DestroyWindow
-DialogBoxIndirectParamA
-DialogBoxIndirectParamW
-DialogBoxParamA
-DialogBoxParamW
-DispatchMessageA
-DispatchMessageW
-DlgDirListA
-DlgDirListComboBoxA
-DlgDirListComboBoxW
-DlgDirListW
-DlgDirSelectComboBoxExA
-DlgDirSelectComboBoxExW
-DlgDirSelectExA
-DlgDirSelectExW
-DragDetect
-DragObject
-DrawAnimatedRects
-DrawCaption
-DrawCaptionTempA
-DrawCaptionTempW
-DrawEdge
-DrawFocusRect
-DrawFrame
-DrawFrameControl
-DrawIcon
-DrawIconEx
-DrawMenuBar
-DrawMenuBarTemp
-DrawStateA
-DrawStateW
-DrawTextA
-DrawTextExA
-DrawTextExW
-DrawTextW
-EditWndProc
-EmptyClipboard
-EnableMenuItem
-EnableScrollBar
-EnableWindow
-EndDeferWindowPos
-EndDialog
-EndMenu
-EndPaint
-EndTask
-EnumChildWindows
-EnumClipboardFormats
-EnumDesktopWindows
-EnumDesktopsA
-EnumDesktopsW
-EnumDisplayDevicesA
-EnumDisplayDevicesW
-EnumDisplayMonitors
-EnumDisplaySettingsA
-EnumDisplaySettingsExA
-EnumDisplaySettingsExW
-EnumDisplaySettingsW
-EnumPropsA
-EnumPropsExA
-EnumPropsExW
-EnumPropsW
-EnumThreadWindows
-EnumWindowStationsA
-EnumWindowStationsW
-EnumWindows
-EqualRect
-ExcludeUpdateRgn
-ExitWindowsEx
-FillRect
-FindWindowA
-FindWindowExA
-FindWindowExW
-FindWindowW
-FlashWindow
-FlashWindowEx
-FrameRect
-FreeDDElParam
-GetActiveWindow
-GetAltTabInfo
-GetAncestor
-GetAsyncKeyState
-GetCapture
-GetCaretBlinkTime
-GetCaretPos
-GetClassInfoA
-GetClassInfoExA
-GetClassInfoExW
-GetClassInfoW
-GetClassLongA
-GetClassLongW
-GetClassNameA
-GetClassNameW
-GetClassWord
-GetClientRect
-GetClipCursor
-GetClipboardData
-GetClipboardFormatNameA
-GetClipboardFormatNameW
-GetClipboardOwner
-GetClipboardSequenceNumber
-GetClipboardViewer
-GetComboBoxInfo
-GetCursor
-GetCursorInfo
-GetCursorPos
-GetDC
-GetDCEx
-GetDesktopWindow
-GetDialogBaseUnits
-GetDlgCtrlID
-GetDlgItem
-GetDlgItemInt
-GetDlgItemTextA
-GetDlgItemTextW
-GetDoubleClickTime
-GetFocus
-GetForegroundWindow
-GetGUIThreadInfo
-GetGuiResources
-GetIconInfo
-GetInputDesktop
-GetInputState
-GetInternalWindowPos
-GetKBCodePage
-GetKeyNameTextA
-GetKeyNameTextW
-GetKeyState
-GetKeyboardLayout
-GetKeyboardLayoutList
-GetKeyboardLayoutNameA
-GetKeyboardLayoutNameW
-GetKeyboardState
-GetKeyboardType
-GetLastActivePopup
-GetListBoxInfo
-GetMenu
-GetMenuBarInfo
-GetMenuCheckMarkDimensions
-GetMenuContextHelpId
-GetMenuDefaultItem
-GetMenuInfo
-GetMenuItemCount
-GetMenuItemID
-GetMenuItemInfoA
-GetMenuItemInfoW
-GetMenuItemRect
-GetMenuState
-GetMenuStringA
-GetMenuStringW
-GetMessageA
-GetMessageExtraInfo
-GetMessagePos
-GetMessageTime
-GetMessageW
-GetMonitorInfoA
-GetMonitorInfoW
-GetMouseMovePoints
-GetMouseMovePointsEx
-GetNextDlgGroupItem
-GetNextDlgTabItem
-GetNextQueueWindow
-GetOpenClipboardWindow
-GetParent
-GetPriorityClipboardFormat
-GetProcessDefaultLayout
-GetProcessWindowStation
-GetPropA
-GetPropW
-GetQueueStatus
-GetScrollBarInfo
-GetScrollInfo
-GetScrollPos
-GetScrollRange
-GetShellWindow
-GetSubMenu
-GetSysColor
-GetSysColorBrush
-GetSystemMenu
-GetSystemMetrics
-GetTabbedTextExtentA
-GetTabbedTextExtentW
-GetThreadDesktop
-GetTitleBarInfo
-GetTopWindow
-GetUpdateRect
-GetUpdateRgn
-GetUserObjectInformationA
-GetUserObjectInformationW
-GetUserObjectSecurity
-GetWindow
-GetWindowContextHelpId
-GetWindowDC
-GetWindowInfo
-GetWindowLongPtrA
-GetWindowLongPtrW
-SetWindowLongPtrA
-SetWindowLongPtrW
-GetWindowLongA
-GetWindowLongW
-GetWindowModuleFileNameA
-GetWindowModuleFileNameW
-GetWindowPlacement
-GetWindowRect
-GetWindowRgn
-GetWindowTextA
-GetWindowTextLengthA
-GetWindowTextLengthW
-GetWindowTextW
-GetWindowThreadProcessId
-GetWindowWord
-GrayStringA
-GrayStringW
-HasSystemSleepStarted
-HideCaret
-HiliteMenuItem
-IMPGetIMEA
-IMPGetIMEW
-IMPQueryIMEA
-IMPQueryIMEW
-IMPSetIMEA
-IMPSetIMEW
-ImpersonateDdeClientWindow
-InSendMessage
-InSendMessageEx
-InflateRect
-InitSharedTable
-InitTask
-InsertMenuA
-InsertMenuItemA
-InsertMenuItemW
-InsertMenuW
-InternalGetWindowText
-IntersectRect
-InvalidateRect
-InvalidateRgn
-InvertRect
-IsCharAlphaA
-IsCharAlphaNumericA
-IsCharAlphaNumericW
-IsCharAlphaW
-IsCharLowerA
-IsCharLowerW
-IsCharUpperA
-IsCharUpperW
-IsChild
-IsClipboardFormatAvailable
-IsDialogMessage
-IsDialogMessageA
-IsDialogMessageW
-IsDlgButtonChecked
-IsHungThread
-IsIconic
-IsMenu
-IsRectEmpty
-IsWindow
-IsWindowEnabled
-IsWindowUnicode
-IsWindowVisible
-IsZoomed
-KillTimer
-LoadAcceleratorsA
-LoadAcceleratorsW
-LoadBitmapA
-LoadBitmapW
-LoadCursorA
-LoadCursorFromFileA
-LoadCursorFromFileW
-LoadCursorW
-LoadIconA
-LoadIconW
-LoadImageA
-LoadImageW
-LoadKeyboardLayoutA
-LoadKeyboardLayoutW
-LoadMenuA
-LoadMenuIndirectA
-LoadMenuIndirectW
-LoadMenuW
-LoadStringA
-LoadStringW
-LockSetForegroundWindow
-LockWindowStation
-LockWindowUpdate
-LookupIconIdFromDirectory
-LookupIconIdFromDirectoryEx
-MapDialogRect
-MapVirtualKeyA
-MapVirtualKeyExA
-MapVirtualKeyExW
-MapVirtualKeyW
-MapWindowPoints
-MenuItemFromPoint
-MessageBeep
-MessageBoxA
-MessageBoxExA
-MessageBoxExW
-MessageBoxIndirectA
-MessageBoxIndirectW
-MessageBoxW
-ModifyAccess
-ModifyMenuA
-ModifyMenuW
-MonitorFromPoint
-MonitorFromRect
-MonitorFromWindow
-MoveWindow
-MsgWaitForMultipleObjects
-MsgWaitForMultipleObjectsEx
-NotifyWinEvent
-OemKeyScan
-OemToCharA
-OemToCharBuffA
-OemToCharBuffW
-OemToCharW
-OffsetRect
-OpenClipboard
-OpenDesktopA
-OpenDesktopW
-OpenIcon
-OpenInputDesktop
-OpenWindowStationA
-OpenWindowStationW
-PackDDElParam
-PaintDesktop
-PeekMessageA
-PeekMessageW
-PlaySoundEvent
-PostMessageA
-PostMessageW
-PostQuitMessage
-PostThreadMessageA
-PostThreadMessageW
-PtInRect
-RealChildWindowFromPoint
-RealGetWindowClass
-RedrawWindow
-RegisterClassA
-RegisterClassExA
-RegisterClassExW
-RegisterClassW
-RegisterClipboardFormatA
-RegisterClipboardFormatW
-RegisterDeviceNotificationA
-RegisterDeviceNotificationW
-RegisterHotKey
-RegisterLogonProcess
-RegisterNetworkCapabilities
-RegisterSystemThread
-RegisterTasklist
-RegisterWindowMessageA
-RegisterWindowMessageW
-ReleaseCapture
-ReleaseDC
-RemoveMenu
-RemovePropA
-RemovePropW
-ReplyMessage
-ReuseDDElParam
-ScreenToClient
-ScrollDC
-ScrollWindow
-ScrollWindowEx
-SendDlgItemMessageA
-SendDlgItemMessageW
-SendIMEMessageExA
-SendIMEMessageExW
-SendInput
-SendMessageA
-SendMessageCallbackA
-SendMessageCallbackW
-SendMessageTimeoutA
-SendMessageTimeoutW
-SendMessageW
-SendNotifyMessageA
-SendNotifyMessageW
-SetActiveWindow
-SetCapture
-SetCaretBlinkTime
-SetCaretPos
-SetClassLongA
-SetClassLongW
-SetClassWord
-SetClipboardData
-SetClipboardViewer
-SetCursor
-SetCursorPos
-SetDebugErrorLevel
-SetDeskWallpaper
-SetDesktopBitmap
-SetDlgItemInt
-SetDlgItemTextA
-SetDlgItemTextW
-SetDoubleClickTime
-SetFocus
-SetForegroundWindow
-SetInternalWindowPos
-SetKeyboardState
-SetLastErrorEx
-SetLogonNotifyWindow
-SetMenu
-SetMenuContextHelpId
-SetMenuDefaultItem
-SetMenuInfo
-SetMenuItemBitmaps
-SetMenuItemInfoA
-SetMenuItemInfoW
-SetMessageExtraInfo
-SetMessageQueue
-SetParent
-SetProcessDefaultLayout
-SetProcessWindowStation
-SetPropA
-SetPropW
-SetRect
-SetRectEmpty
-SetScrollInfo
-SetScrollPos
-SetScrollRange
-SetShellWindow
-SetSysColors
-SetSysColorsTemp
-SetSystemCursor
-SetThreadDesktop
-SetTimer
-SetUserObjectInformationA
-SetUserObjectInformationW
-SetUserObjectSecurity
-SetWinEventHook
-SetWindowContextHelpId
-SetWindowFullScreenState
-SetWindowLongA
-SetWindowLongW
-SetWindowPlacement
-SetWindowPos
-SetWindowRgn
-SetWindowTextA
-SetWindowTextW
-SetWindowWord
-SetWindowsHookA
-SetWindowsHookExA
-SetWindowsHookExW
-SetWindowsHookW
-ShowCaret
-ShowCursor
-ShowOwnedPopups
-ShowScrollBar
-ShowWindow
-ShowWindowAsync
-SubtractRect
-SwapMouseButton
-SwitchDesktop
-SwitchToThisWindow
-SysErrorBox
-SystemParametersInfoA
-SystemParametersInfoW
-TabbedTextOutA
-TabbedTextOutW
-TileChildWindows
-TileWindows
-ToAscii
-ToAsciiEx
-ToUnicode
-ToUnicodeEx
-TrackMouseEvent
-TrackPopupMenu
-TrackPopupMenuEx
-TranslateAccelerator
-TranslateAcceleratorA
-TranslateAcceleratorW
-TranslateMDISysAccel
-TranslateMessage
-UnhookWinEvent
-UnhookWindowsHook
-UnhookWindowsHookEx
-UnionRect
-UnloadKeyboardLayout
-UnlockWindowStation
-UnpackDDElParam
-UnregisterClassA
-UnregisterClassW
-UnregisterDeviceNotification
-UnregisterHotKey
-UpdateWindow
-UserClientDllInitialize
-UserIsSystemResumeAutomatic
-UserSetDeviceHoldState
-UserSignalProc
-UserTickleTimer
-ValidateRect
-ValidateRgn
-VkKeyScanA
-VkKeyScanExA
-VkKeyScanExW
-VkKeyScanW
-WINNLSEnableIME
-WINNLSGetEnableStatus
-WINNLSGetIMEHotkey
-WNDPROC_CALLBACK
-WaitForInputIdle
-WaitMessage
-WinHelpA
-WinHelpW
-WinOldAppHackoMatic
-WindowFromDC
-WindowFromPoint
-YieldTask
-_SetProcessDefaultLayout
-keybd_event
-mouse_event
-wsprintfA
-wsprintfW
-wvsprintfA
-wvsprintfW
diff --git a/tinycc/win32/lib/wincrt1.c b/tinycc/win32/lib/wincrt1.c
deleted file mode 100644
index d74a0cf..0000000
--- a/tinycc/win32/lib/wincrt1.c
+++ /dev/null
@@ -1,86 +0,0 @@
-//+---------------------------------------------------------------------------
-
-// _UNICODE for tchar.h, UNICODE for API
-#include <tchar.h>
-
-#include <windows.h>
-#include <stdlib.h>
-
-#define __UNKNOWN_APP 0
-#define __CONSOLE_APP 1
-#define __GUI_APP 2
-void __set_app_type(int);
-void _controlfp(unsigned a, unsigned b);
-
-#ifdef _UNICODE
-#define __tgetmainargs __wgetmainargs
-#define _twinstart _wwinstart
-#define _runtwinmain _runwwinmain
-int APIENTRY wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int);
-#else
-#define __tgetmainargs __getmainargs
-#define _twinstart _winstart
-#define _runtwinmain _runwinmain
-#endif
-
-typedef struct { int newmode; } _startupinfo;
-int __cdecl __tgetmainargs(int *pargc, _TCHAR ***pargv, _TCHAR ***penv, int globb, _startupinfo*);
-
-#include "crtinit.c"
-
-static int go_winmain(TCHAR *arg1)
-{
- STARTUPINFO si;
- _TCHAR *szCmd, *p;
- int fShow;
- int retval;
-
- GetStartupInfo(&si);
- if (si.dwFlags & STARTF_USESHOWWINDOW)
- fShow = si.wShowWindow;
- else
- fShow = SW_SHOWDEFAULT;
-
- szCmd = NULL, p = GetCommandLine();
- if (arg1)
- szCmd = _tcsstr(p, arg1);
- if (NULL == szCmd)
- szCmd = _tcsdup(__T(""));
- else if (szCmd > p && szCmd[-1] == __T('"'))
- --szCmd;
-#if defined __i386__ || defined __x86_64__
- _controlfp(0x10000, 0x30000);
-#endif
- run_ctors(__argc, __targv, _tenviron);
- retval = _tWinMain(GetModuleHandle(NULL), NULL, szCmd, fShow);
- run_dtors();
- return retval;
-}
-
-static LONG WINAPI catch_sig(EXCEPTION_POINTERS *ex)
-{
- return _XcptFilter(ex->ExceptionRecord->ExceptionCode, ex);
-}
-
-int _twinstart(void)
-{
- _startupinfo start_info_con = {0};
- SetUnhandledExceptionFilter(catch_sig);
- __set_app_type(__GUI_APP);
- __tgetmainargs(&__argc, &__targv, &_tenviron, 0, &start_info_con);
- exit(go_winmain(__argc > 1 ? __targv[1] : NULL));
-}
-
-int _runtwinmain(int argc, /* as tcc passed in */ char **argv)
-{
-#ifdef UNICODE
- _startupinfo start_info = {0};
- __tgetmainargs(&__argc, &__targv, &_tenviron, 0, &start_info);
- /* may be wrong when tcc has received wildcards (*.c) */
- if (argc < __argc)
- __targv += __argc - argc, __argc = argc;
-#else
- __argc = argc, __targv = argv;
-#endif
- return go_winmain(__argc > 1 ? __targv[1] : NULL);
-}
diff --git a/tinycc/win32/lib/wincrt1w.c b/tinycc/win32/lib/wincrt1w.c
deleted file mode 100644
index a7d349e..0000000
--- a/tinycc/win32/lib/wincrt1w.c
+++ /dev/null
@@ -1,3 +0,0 @@
-#define _UNICODE 1
-#define UNICODE 1
-#include "wincrt1.c"
diff --git a/tinycc/win32/lib/ws2_32.def b/tinycc/win32/lib/ws2_32.def
deleted file mode 100644
index b618266..0000000
--- a/tinycc/win32/lib/ws2_32.def
+++ /dev/null
@@ -1,198 +0,0 @@
-LIBRARY ws2_32.dll
-
-EXPORTS
-FreeAddrInfoEx
-FreeAddrInfoExW
-FreeAddrInfoW
-GetAddrInfoExA
-GetAddrInfoExCancel
-GetAddrInfoExOverlappedResult
-GetAddrInfoExW
-GetAddrInfoW
-GetHostNameW
-GetNameInfoW
-InetNtopW
-InetPtonW
-SetAddrInfoExA
-SetAddrInfoExW
-WEP
-WPUCompleteOverlappedRequest
-WPUGetProviderPathEx
-WSAAccept
-WSAAddressToStringA
-WSAAddressToStringW
-WSAAdvertiseProvider
-WSAAsyncGetHostByAddr
-WSAAsyncGetHostByName
-WSAAsyncGetProtoByName
-WSAAsyncGetProtoByNumber
-WSAAsyncGetServByName
-WSAAsyncGetServByPort
-WSAAsyncSelect
-WSACancelAsyncRequest
-WSACancelBlockingCall
-WSACleanup
-WSACloseEvent
-WSAConnect
-WSAConnectByList
-WSAConnectByNameA
-WSAConnectByNameW
-WSACreateEvent
-WSADuplicateSocketA
-WSADuplicateSocketW
-WSAEnumNameSpaceProvidersA
-WSAEnumNameSpaceProvidersExA
-WSAEnumNameSpaceProvidersExW
-WSAEnumNameSpaceProvidersW
-WSAEnumNetworkEvents
-WSAEnumProtocolsA
-WSAEnumProtocolsW
-WSAEventSelect
-WSAGetLastError
-WSAGetOverlappedResult
-WSAGetQOSByName
-WSAGetServiceClassInfoA
-WSAGetServiceClassInfoW
-WSAGetServiceClassNameByClassIdA
-WSAGetServiceClassNameByClassIdW
-WSAHtonl
-WSAHtons
-WSAInstallServiceClassA
-WSAInstallServiceClassW
-WSAIoctl
-WSAIsBlocking
-WSAJoinLeaf
-WSALookupServiceBeginA
-WSALookupServiceBeginW
-WSALookupServiceEnd
-WSALookupServiceNextA
-WSALookupServiceNextW
-WSANSPIoctl
-WSANtohl
-WSANtohs
-WSAPoll
-WSAProviderCompleteAsyncCall
-WSAProviderConfigChange
-WSARecv
-WSARecvDisconnect
-WSARecvFrom
-WSARemoveServiceClass
-WSAResetEvent
-WSASend
-WSASendDisconnect
-WSASendMsg
-WSASendTo
-WSASetBlockingHook
-WSASetEvent
-WSASetLastError
-WSASetServiceA
-WSASetServiceW
-WSASocketA
-WSASocketW
-WSAStartup
-WSAStringToAddressA
-WSAStringToAddressW
-WSAUnadvertiseProvider
-WSAUnhookBlockingHook
-WSAWaitForMultipleEvents
-WSApSetPostRoutine
-WSCDeinstallProvider
-WSCDeinstallProvider32
-WSCDeinstallProviderEx
-WSCEnableNSProvider
-WSCEnableNSProvider32
-WSCEnumNameSpaceProviders32
-WSCEnumNameSpaceProvidersEx32
-WSCEnumProtocols
-WSCEnumProtocols32
-WSCEnumProtocolsEx
-WSCGetApplicationCategory
-WSCGetApplicationCategoryEx
-WSCGetProviderInfo
-WSCGetProviderInfo32
-WSCGetProviderPath
-WSCGetProviderPath32
-WSCInstallNameSpace
-WSCInstallNameSpace32
-WSCInstallNameSpaceEx
-WSCInstallNameSpaceEx2
-WSCInstallNameSpaceEx32
-WSCInstallProvider
-WSCInstallProvider64_32
-WSCInstallProviderAndChains64_32
-WSCInstallProviderEx
-WSCSetApplicationCategory
-WSCSetApplicationCategoryEx
-WSCSetProviderInfo
-WSCSetProviderInfo32
-WSCUnInstallNameSpace
-WSCUnInstallNameSpace32
-WSCUnInstallNameSpaceEx2
-WSCUpdateProvider
-WSCUpdateProvider32
-WSCUpdateProviderEx
-WSCWriteNameSpaceOrder
-WSCWriteNameSpaceOrder32
-WSCWriteProviderOrder
-WSCWriteProviderOrder32
-WSCWriteProviderOrderEx
-WahCloseApcHelper
-WahCloseHandleHelper
-WahCloseNotificationHandleHelper
-WahCloseSocketHandle
-WahCloseThread
-WahCompleteRequest
-WahCreateHandleContextTable
-WahCreateNotificationHandle
-WahCreateSocketHandle
-WahDestroyHandleContextTable
-WahDisableNonIFSHandleSupport
-WahEnableNonIFSHandleSupport
-WahEnumerateHandleContexts
-WahInsertHandleContext
-WahNotifyAllProcesses
-WahOpenApcHelper
-WahOpenCurrentThread
-WahOpenHandleHelper
-WahOpenNotificationHandleHelper
-WahQueueUserApc
-WahReferenceContextByHandle
-WahRemoveHandleContext
-WahWaitForNotification
-WahWriteLSPEvent
-__WSAFDIsSet
-accept
-bind
-closesocket
-connect
-freeaddrinfo
-getaddrinfo
-gethostbyaddr
-gethostbyname
-gethostname
-getnameinfo
-getpeername
-getprotobyname
-getprotobynumber
-getservbyname
-getservbyport
-getsockname
-getsockopt
-htonl
-htons
-inet_addr
-inet_ntoa
-inet_ntop
-inet_pton
-ioctlsocket
-listen
-ntohl
-ntohs
-recv
-recvfrom
-select
-send
-sendto
-setsockopt
-shutdown
-socket