[PATCH] riched20: Avoid using GCC's typeof extension

Alex Henrie alexhenrie24 at gmail.com
Mon Sep 24 14:15:27 CDT 2018


On Mon, Sep 24, 2018 at 10:19 AM Alexandre Julliard <julliard at winehq.org> wrote:
>
> Alex Henrie <alexhenrie24 at gmail.com> writes:
>
> > Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
> > ---
> >  dlls/riched20/txthost.c | 86 ++++++++++++++++++++---------------------
> >  dlls/riched20/txtsrv.c  |  4 +-
> >  2 files changed, 45 insertions(+), 45 deletions(-)
>
> It breaks the Windows build:
>
> /usr/bin/i686-w64-mingw32-ld: txthost.o:txthost.c:(.rdata+0xec): undefined reference to `__stdcall_ITextHostImpl_TxGetDC'
> /usr/bin/i686-w64-mingw32-ld: txthost.o:txthost.c:(.rdata+0xf0): undefined reference to `__stdcall_ITextHostImpl_TxReleaseDC'
> /usr/bin/i686-w64-mingw32-ld: txthost.o:txthost.c:(.rdata+0xf4): undefined reference to `__stdcall_ITextHostImpl_TxShowScrollBar'
> /usr/bin/i686-w64-mingw32-ld: txthost.o:txthost.c:(.rdata+0xf8): undefined reference to `__stdcall_ITextHostImpl_TxEnableScrollBar'
> /usr/bin/i686-w64-mingw32-ld: txthost.o:txthost.c:(.rdata+0xfc): undefined reference to `__stdcall_ITextHostImpl_TxSetScrollRange'
> etc.

How are you compiling Wine? Loosely following
<https://wiki.winehq.org/Cygwin_and_More#Cross-compiling_with_mingw-w64>,
I tried `../wine/configure --host=i686-w64-mingw32
--with-wine-tools=../wine-build-native --without-freetype --without-x
--without-png && make` and it works for me.

-Alex



More information about the wine-devel mailing list