Theodore Jump wrote:
> 
> I got more cleanups/updates to the project files for building Windows posted,
> along with some minor edits to various sources - these edits *should* not
> affect other builds but I haven't been able to test that yet.
> 
> I am having a problem building GLUT with the current sources, and I haven't
> figured out yet why. The problem comes when compiling glut_gamemode.c, it fails
> on the use of atexit() for some unknown reason BECAUSE near as I can tell it's
> calling atexit() just fine, with an arg that is 100% proper - but MSVC
> disagrees thusly:
> 
> .\..\src-glut\glut_gamemode.c(598) : error C2152: 'function' : pointers to
> functions with different attributes
> .\..\src-glut\glut_gamemode.c(598) : warning C4024: 'atexit' : different types
> for formal and actual parameter 1
> 
> Grrr.


The culprit is here: (glutint.h)

/* added by BrianP: */
#define APIENTRY GLAPIENTRY
#define __cdecl GLAPIENTRY
#define CDECL GLAPIENTRY


and GLAPIENTRY is defined in gl/gl to __stdcall
but atexit really really needs a __cdecl function.


                Eero


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

Reply via email to