Added missing guard to deactivate ATEXIT_HACK on non-Windows platforms
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@820 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
2bf156719b
commit
8e840f9c61
@ -779,11 +779,13 @@ int FGAPIENTRY glutCreateMenu( void(* callback)( int ) )
|
|||||||
return fgCreateMenu( callback )->ID;
|
return fgCreateMenu( callback )->ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
int FGAPIENTRY __glutCreateMenuWithExit( void(* callback)( int ), void (__cdecl *exitfunc)(int) )
|
int FGAPIENTRY __glutCreateMenuWithExit( void(* callback)( int ), void (__cdecl *exitfunc)(int) )
|
||||||
{
|
{
|
||||||
__glutExitFunc = exitfunc;
|
__glutExitFunc = exitfunc;
|
||||||
return glutCreateMenu( callback );
|
return glutCreateMenu( callback );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Destroys a menu object, removing all references to it
|
* Destroys a menu object, removing all references to it
|
||||||
|
Reference in New Issue
Block a user