> > The way to fix this is to add the following at the start of your
> > gl.h header file (and change all the GLAPIENTRY's in Mesa to be
> > APIENTRY again like it used to be):
> 
> I believe Ted Jump changed APIENTRY to GLAPIENTRY.  Ted, why was
> that done?

Well, one reason could be 'constant namespace pollution'. For example,
'Wine' (to be compatible with MS's headers) defines APIENTRY, CALLBACK
and WINAPI.

So, if you include Mesa's header files in Wine (what I do to support
OpenGL and to 'simulate' Direct3D), APIENTRY is modified by 'GL/gl.h'
(as it is #defined to nothing on non-Windows platforms).

Anyway, it is not such a big deal (I have a 'wine_gl.h' wrapper around
gl.h to reset the constants to the Wine-approved versions).

              Lionel



_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to