[CRT] Remove duplicated atexit/onexit code

This removes the broken wine version of atexit and onexit. It keeps only dllonexit, which is implemented properly. The previous __call_atexit is moved to where the mingw onexit/atexit code is and adjusts it to work with the existing code. A call to __call_atexit is added in __tmainCRTStartup after the main function was called.
This commit is contained in:
Timo Kreuzer 2020-10-22 17:11:02 +02:00
parent d685dcee9b
commit 2c791cdde7
4 changed files with 37 additions and 69 deletions

View file

@ -197,7 +197,7 @@ list(APPEND CRT_SOURCE
startup/natstart.c
startup/charmax.c
#startup/merr.c
#startup/atonexit.c
startup/atonexit.c
#startup/txtmode.c
startup/pesect.c
startup/tlsmcrt.c