wine/tools/widl
Zebediah Figura e654b631f2 widl: Generate "static inline" instead of "static FORCEINLINE" for COM inline wrappers.
mingw-w64 defines __forceinline (and therefore FORCEINLINE) as
"extern __inline__ __attribute__((__always_inline__,__gnu_inline__)). This means
that COM inline wrappers specify multiple storage classes and hence cannot be
compiled.

Wine defines FORCEINLINE simply as "inline" (and uses "static" everywhere), so
this is a non-issue for Wine. However, since Wine and mingw-w64 share the source
code of widl and of most IDL headers, this patch changes the definition for both
projects.

There's no reason to force inlining here, especially since the wrappers need to
be manually enabled, and we don't need to match PSDK semantics where these
wrappers don't even exist.

In practice, use "__inline__" instead of "inline" for GNU C targets, to preserve
compatibility with C89 in mingw-w64 headers.
2022-09-28 15:27:51 +02:00
..
client.c
expr.c
expr.h
hash.c widl: Silence error message for unknown languages. 2022-04-01 20:30:57 +02:00
hash.h
header.c widl: Generate "static inline" instead of "static FORCEINLINE" for COM inline wrappers. 2022-09-28 15:27:51 +02:00
header.h
Makefile.in
parser.h
parser.l
parser.y widl: Allow parameterized types in runtimeclass interfaces. 2022-09-13 16:22:21 +02:00
proxy.c
register.c
server.c
typegen.c
typegen.h
typelib.c
typelib.h
typelib_struct.h
typetree.c widl: Use "cinterface(IInspectable)" for IInspectable signature. 2022-09-14 22:38:34 +02:00
typetree.h widl: Support namespaces for union declarations. 2022-07-07 19:10:02 +02:00
utils.c
utils.h
widl.c tools: Consistently use xmalloc/xrealloc/xstrdup everywhere. 2022-02-08 20:24:14 +01:00
widl.h
widl.man.in
widltypes.h
write_msft.c widl: Remove set but unused variable. 2022-05-25 11:58:57 +02:00