X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_internal.h;h=a97e029f3dbdc24bd3e95c31e78b7ae44131b25d;hb=97f5adea8d026f9346af276d5cf49fab36a0d0d3;hp=cea8ad81d3b7929301a0a6712f3fac6b86ba77a4;hpb=34290224a4fea01b30fe3c83d3c6d00bd5945acd;p=freeglut diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index cea8ad8..a97e029 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -392,12 +392,12 @@ struct tagSFG_WindowState * and for no other reason. Since it's hidden in the macro, the * ugliness is felt to be rather benign. */ -#define SET_WCB(window,cbname,func) \ -do \ -{ \ - if( FETCH_WCB( window, cbname ) != func ) \ - (((window).CallBacks[CB_ ## cbname]) = func); \ -} while( 0 ) \ +#define SET_WCB(window,cbname,func) \ +do \ +{ \ + if( FETCH_WCB( window, cbname ) != func ) \ + (((window).CallBacks[CB_ ## cbname]) = (void *) func); \ +} while( 0 ) \ /* * FETCH_WCB() is used as: