Jacek Caban (@jacek) commented about include/wine/unixlib.h:
#define wcstol(str,e,b) ntdll_wcstol(str,e,b) #define wcstoul(str,e,b) ntdll_wcstoul(str,e,b)
+#else
+#include "winternl.h"
+static inline NTSTATUS WINAPI delayload__wine_unix_call( unixlib_handle_t handle, unsigned int code, void *args ); +static NTSTATUS (WINAPI *__wine_unix_call)( unixlib_handle_t, unsigned int, void * ) = delayload__wine_unix_call;
I don't expect inlining `delayload__wine_unix_call` to matter at all, it will be called only once per module (if anything, I think that inlining like that would make it slightly worse by calling it once per .c file instead). Maybe we could declare __wine_unix_call as an extern pointer here, have the pointer in winecrt0 and keep delayload there?