Lionel Ulmer <[EMAIL PROTECTED]> wrote:
> > 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).
That can be solved with proper use of macros. What we have done with
our macros is ensure that the headers will work correctly if
<windows.h> is included first, after or not at all.
Regards,
+---------------------------------------------------------------+
| SciTech Software - Building Truly Plug'n'Play Software! |
+---------------------------------------------------------------+
| Kendall Bennett | Email: [EMAIL PROTECTED] |
| Director of Engineering | Phone: (530) 894 8400 |
| SciTech Software, Inc. | Fax : (530) 894 9069 |
| 505 Wall Street | ftp : ftp.scitechsoft.com |
| Chico, CA 95928, USA | www : http://www.scitechsoft.com |
+---------------------------------------------------------------+
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev