Kendall Bennett wrote:
> 
> Brian Paul <[EMAIL PROTECTED]> wrote:

> > Microsoft has the same problem with its gl.h file.  It depends
> > upon windows.h but does not include it.  So unfortunately, yes, you
> > do have to #ifdef/#include "windows.h"/#endif in portable GL
> > programs.   But not when using GLUT since glut.h #includes
> > "windows.h" for you.
> 
> Actually this is not the case.

Well yeah, if you're going to hack on the headers!  :)


> The only reason the Windows header
> files are included is to define a couple of calling conventions for
> the Windows functions (specifically WINGDIAPI, APIENTRY and
> CALLBACK). We worked around this problem a while back in our OpenGL
> headers used in the MGL. The cool thing about this is that Windows
> code compiles *so* much faster without including <windows.h>. 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?

I personally never use Mesa on Windows but I'd like to be sure it
works there.  If you and Ted can agree on what should be done- go
for it.

-Brian


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

Reply via email to