在 2022-06-12 01:59, Zebediah Figura 写道:
The combination of `extern` with `__gnu_inline__` is necessary to suppress 
generation of a function
body if the attached function could not be inlined when compiling as C99.

Why do we need that?


Otherwise there would be errors about multiple definitions.


I don't think there is
anything we can do with these headers. Perhaps WIDL should not generate 
`static` for `FORCEINLINE`
functions; or, if that is not an option, `static __inline__` might be a better 
alternative.

Is it legal to use 'static __forceinline' or 'extern __forceinline' with MSVC? If so I imagine we should find a solution that allows them.


Yes, unfortunately. I don't think there is a solution. `extern inline` and `inline` are not equivalent in C.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to