Unbreak the build for non-Windows platforms, fixing obviously untested

recent commits.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@831 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2009-07-23 19:07:34 +00:00
parent f0d06b2fe6
commit 5c6071fa45
4 changed files with 4 additions and 4 deletions

View File

@ -854,7 +854,7 @@ void FGAPIENTRY glutInit( int* pargc, char** argv )
} }
} }
#ifdef TARGET_HOST_MS_WINDOWS #if TARGET_HOST_MS_WINDOWS
void (__cdecl *__glutExitFunc)( int return_value ) = NULL; void (__cdecl *__glutExitFunc)( int return_value ) = NULL;
void FGAPIENTRY __glutInitWithExit( int *pargc, char **argv, void (__cdecl *exit_function)(int) ) void FGAPIENTRY __glutInitWithExit( int *pargc, char **argv, void (__cdecl *exit_function)(int) )

View File

@ -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 TARGET_HOST_MS_WINDOWS #if TARGET_HOST_MS_WINDOWS
extern void (__cdecl *__glutExitFunc)( int return_value ); extern void (__cdecl *__glutExitFunc)( int return_value );
#endif #endif

View File

@ -779,7 +779,7 @@ int FGAPIENTRY glutCreateMenu( void(* callback)( int ) )
return fgCreateMenu( callback )->ID; return fgCreateMenu( callback )->ID;
} }
#ifdef TARGET_HOST_MS_WINDOWS #if TARGET_HOST_MS_WINDOWS
int FGAPIENTRY __glutCreateMenuWithExit( void(* callback)( int ), void (__cdecl *exit_function)(int) ) int FGAPIENTRY __glutCreateMenuWithExit( void(* callback)( int ), void (__cdecl *exit_function)(int) )
{ {
__glutExitFunc = exit_function; __glutExitFunc = exit_function;

View File

@ -1093,7 +1093,7 @@ int FGAPIENTRY glutCreateWindow( const char* title )
GL_FALSE, GL_FALSE )->ID; GL_FALSE, GL_FALSE )->ID;
} }
#ifdef TARGET_HOST_MS_WINDOWS #if 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;