• Zebediah Figura's avatar
    widl: Generate "static inline" instead of "static FORCEINLINE" for COM inline wrappers. · e654b631
    Zebediah Figura authored
    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.
    e654b631
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...