Wine and C99 inline incompatibility

Alexandre Julliard julliard at
Tue Jul 3 10:58:03 CDT 2007

Vitaliy Margolen <wine-devel at> writes:

> As I recall the problem was with the way InterlockedExchangePointer()
> and InterlockedCompareExchangePointer() are defined. I'm guessing
> compiler/linker can't optimize this away, if they are not used. And
> lots of programs in tools/ do include the winbase.h.

Ah I see, so the problem is really the static inline. I'm not sure
there's a good way to fix that one except by exporting the *Pointer
functions from kernel32, but that's not strictly compatible.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list