[EMAIL PROTECTED] (Theodore Jump) wrote:
> >I believe Ted Jump changed APIENTRY to GLAPIENTRY. Ted, why was
> >that done?
>
> Since each DLL component of the mesa package (Mesa itself "as"
> OpenGL32.DLL, GLU32.DLL and GLUT32.DLL) need to have their
> and-only-their functions marked as __declspec(dllexport) when
> building the respective DLL.
>
> Otherwise if gl.h, glu.h, and glut.h all used APIENTRY
> simultaneously then when (for example) building glu or glut the
> compiler would attempt to export the gl functions from glu32.dll
> also. ;^(
>
> Using a unique export tag for each library solves this, and
> GLAPIENTRY, etc., actually resolve to the same thing that APIENTRY
> resolves to.
Fair enough. However the solution we use for this is that we always
export functions using DEF files rather than by compiling the code
with the __declspec(dllexport) stuff (which BTW has to be different
for some compilers which is a major pain to code around).
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