X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_menu.c;h=ea5837e807d3aff8115170ca7e1079565437f349;hb=ded8742fba5a4622b49778679cc7e26d197d75c5;hp=8a04d0be03f526d7092218f0e7d58a7132d1a4e5;hpb=8fb7b342a32cb2336b5c3752c68714b47ac7c63e;p=freeglut diff --git a/src/freeglut_menu.c b/src/freeglut_menu.c index 8a04d0b..ea5837e 100644 --- a/src/freeglut_menu.c +++ b/src/freeglut_menu.c @@ -779,11 +779,13 @@ int FGAPIENTRY glutCreateMenu( void(* callback)( int ) ) return fgCreateMenu( callback )->ID; } -int FGAPIENTRY __glutCreateMenuWithExit( void(* callback)( int ), void (__cdecl *exitfunc)(int) ) +#if TARGET_HOST_MS_WINDOWS +int FGAPIENTRY __glutCreateMenuWithExit( void(* callback)( int ), void (__cdecl *exit_function)(int) ) { - __glutExitFunc = exitfunc; + __glutExitFunc = exit_function; return glutCreateMenu( callback ); } +#endif /* * Destroys a menu object, removing all references to it