27 Sep
2022
27 Sep
'22
11:14 a.m.
Jacek Caban (@jacek) commented about tools/widl/header.c:
fprintf(header, "#ifndef __%s__\n", header_token); fprintf(header, "#define __%s__\n\n", header_token);
+ fprintf(header, "#ifndef __WIDL_INLINE\n"); + fprintf(header, "#if defined(__cplusplus) || defined(_MSC_VER)\n"); + fprintf(header, "#define __WIDL_INLINE static inline\n"); + fprintf(header, "#elif defined(__GNUC__)\n"); + fprintf(header, "#define __WIDL_INLINE static __inline__\n"); + fprintf(header, "#endif\n\n"); Do we really need __WIDL_INLINE? It seems to me that we could just use static inline unconditionally.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/935#note_9380