opengl32: it does not compile well in CYGWIN and MINGW

Alexandre Julliard julliard at winehq.org
Thu Oct 1 07:13:51 CDT 2015


carlo.bramix at libero.it writes:

> Hello,
> I'm writing here for asking a suggestion about a patch that I have sent one month ago.
> The fix attached in this email:
>
> https://www.winehq.org/pipermail/wine-patches/2015-August/141811.html
>
> is required because, when compiling opengl32 on Windows (CYGWIN or
> MINGW), the compiler complains that the exported functions are
> redeclared without dllimport attribute, while they should be declared
> with dllexport from beginning.
> This error can be fixed by adding the definition of _GDI32_ so that WINGDIAPI macro is declared correctly.
> This fix already exists for example in /dlls/gdi32/Makefile.in as you can see here:
>
> http://source.winehq.org/git/wine.git/blob/HEAD:/dlls/gdi32/Makefile.in

In gdi32 we don't want to import the gdi32 functions, but opengl32 is
supposed to import them, so getting rid of the dllimport doesn't look
right.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list