From: John F. Fay Date: Sun, 12 Jul 2009 14:29:16 +0000 (+0000) Subject: Making the #ifdef's around "__glutExitFunc" consistent so Cygwin will build X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=e8f4ca34e55d4a4eb16d5e1decd2b4336f6b5b8e;p=freeglut Making the #ifdef's around "__glutExitFunc" consistent so Cygwin will build git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@830 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index 0b26626..121df1a 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -933,7 +933,7 @@ int fgHintPresent(Window window, Atom property, Atom hint); SFG_Proc fghGetProcAddress( const char *procName ); -#ifdef _WIN32 +#ifdef TARGET_HOST_MS_WINDOWS extern void (__cdecl *__glutExitFunc)( int return_value ); #endif diff --git a/src/freeglut_window.c b/src/freeglut_window.c index 7b73146..6366d0e 100644 --- a/src/freeglut_window.c +++ b/src/freeglut_window.c @@ -1093,7 +1093,7 @@ int FGAPIENTRY glutCreateWindow( const char* title ) GL_FALSE, GL_FALSE )->ID; } -#ifdef _WIN32 +#ifdef TARGET_HOST_MS_WINDOWS int FGAPIENTRY __glutCreateWindowWithExit( const char *title, void (__cdecl *exit_function)(int) ) { __glutExitFunc = exit_function;