10 Dec
2025
10 Dec
'25
11:40 p.m.
Jacek Caban (@jacek) commented about dlls/winecrt0/crt_dllmain.c:
#include <stdarg.h> #include <stdio.h> +#include <process.h> #include "windef.h" #include "winbase.h"
+extern _PIFV __xi_a[]; +extern _PIFV __xi_z[]; +extern _PVFV __xc_a[]; +extern _PVFV __xc_z[]; +extern _PVFV __xt_a[]; +extern _PVFV __xt_z[]; + +static inline void initterm( _PVFV *start,_PVFV *end )
It would be nice to import it from msvcrt or ucrtbase when possible. Could we add this, along with the `initterm_e` fallback implementation, to the ntdll importlib? That way we would use the static version only when the function is not available otherwise. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9265#note_125440