me...@bi... wrote:
>
> I got mesa 3.3 working on Windows (built and linked to opengl32.dll).
> One more bit of difficulty I ran into was with header inclusion order.
>
> - glapi.c needs a bunch of prototypes for extenstions to compile
> correctly.
> - glext.h has them, but they only get compiled in if
> GL_GLEXT_PROTOTYPES is defined.
>
> The chain of inclusion with glapi under Windows/MSVC goes like this:
>
> glapi.c includes glheader.h,
> which includes mesa_wgl.h,
> which includes gl/gl.h,
> which includes gl/glext.h (since GL_GLEXT_LEGACY is not defined).
>
> But nowhere in there does GL_GLEXT_PROTOTYPES get defined. It currently
> gets defined in glheader.h just AFTER the inclusion of mesa_wgl.h
> after which glheader includes gl.h and glext.h directly. So I fixed
> by defining GL_GLEXT_PROTOTYPES it just before #including mesa_wgl.h in
> glheader.h. Sound ok?
Yes, that seems to work fine. I'm checking in the change to
the Mesa 3.4 branch and 3.5 trunk.
-Brian
|