Re: MSys/MinGW build

From: Kenneth J. Davis (jeremyd_at_ctc.net)
Date: Thu Jan 01 2004 - 20:36:49 EST

  • Next message: sbf_1_at_toughguy.net: "greyed out preferences"

    >Date: Thu, 01 Jan 2004 19:31:49 -0500
    >From: Jack Dodds <brmdamon_at_aci.on.ca>
    >To: abiword-user_at_abisource.com
    >Subject: Re: MSys/MinGW build
    >
    >Thanks Jeremy - that fixed it - but now the make fails much later with
    >the following:
    >
    >In file included from C:/SW/MSYS/1.0/mingw/include/windows.h:55,
    > from ut_sleep.cpp:24:
    >C:/SW/MSYS/1.0/mingw/include/winuser.h:3411: type specifier omitted for
    > parameter `BLENDFUNCTION'
    >C:/SW/MSYS/1.0/mingw/include/winuser.h:3411: parse error before `*' token
    >make[4]: *** [/c/AWSource/Abi/src/MINGW32_1.0.9_i386_OBJ/obj/ut_sleep.o]
    >Error 1
    >
    >Any suggestions?
    >
    >
    >Jack Dodds
    >
    >

    That's a w32api (MinGW's windows headers) error, you need
    to patch winuser.h with the following as BLENDFUNCTION is
    only defined when the GDI headers are also included. (This
    is roughly the same way it is defined on MSVC, and I think
    more recent w32api's may have fixed this, but not sure).

    #ifndef NOGDI
    BOOL WINAPI UpdateLayeredWindow(HWND,HDC,POINT*,SIZE*,HDC,POINT*,COLORREF,BLENDFUNCTION*,DWORD);
    #endif

    [The alternative, that I do not want committed to our source,
     is to edit ut_sleep.cpp and remove the NOGDI #define.]

    Jeremy

    -----------------------------------------------
    To unsubscribe from this list, send a message to
    abiword-user-request_at_abisource.com with the word
    unsubscribe in the message body.



    This archive was generated by hypermail 2.1.4 : Thu Jan 01 2004 - 20:35:56 EST