On Fri Nov 4 14:21:43 2022 +0000, Jacek Caban wrote:
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?
Ah yeah of course, I didn't mean to inline its call, but rather to avoid an unused static function warning. Though it's always used as the __wine_unix_call pointer initializer.
I guess this could probably be done without header inlines at all and simply with an extern pointer as you said.