opengl32: it does not compile well in CYGWIN and MINGW

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

carlo.bramix at 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:
> 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/ as you can see here:

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

Alexandre Julliard
julliard at

More information about the wine-devel mailing list