Making the #ifdef's around "__glutExitFunc" consistent so Cygwin will build
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@830 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
ecd59d13e2
commit
f0d06b2fe6
@ -933,7 +933,7 @@ int fgHintPresent(Window window, Atom property, Atom hint);
|
|||||||
|
|
||||||
SFG_Proc fghGetProcAddress( const char *procName );
|
SFG_Proc fghGetProcAddress( const char *procName );
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef TARGET_HOST_MS_WINDOWS
|
||||||
extern void (__cdecl *__glutExitFunc)( int return_value );
|
extern void (__cdecl *__glutExitFunc)( int return_value );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1093,7 +1093,7 @@ int FGAPIENTRY glutCreateWindow( const char* title )
|
|||||||
GL_FALSE, GL_FALSE )->ID;
|
GL_FALSE, GL_FALSE )->ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef TARGET_HOST_MS_WINDOWS
|
||||||
int FGAPIENTRY __glutCreateWindowWithExit( const char *title, void (__cdecl *exit_function)(int) )
|
int FGAPIENTRY __glutCreateWindowWithExit( const char *title, void (__cdecl *exit_function)(int) )
|
||||||
{
|
{
|
||||||
__glutExitFunc = exit_function;
|
__glutExitFunc = exit_function;
|
||||||
|
Reference in New Issue
Block a user