Making the #ifdef's around "__glutExitFunc" consistent so Cygwin will build
authorJohn F. Fay <johnffay@nettally.com>
Sun, 12 Jul 2009 14:29:16 +0000 (14:29 +0000)
committerJohn F. Fay <johnffay@nettally.com>
Sun, 12 Jul 2009 14:29:16 +0000 (14:29 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@830 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_internal.h
src/freeglut_window.c

index 0b26626..121df1a 100644 (file)
@@ -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
 
index 7b73146..6366d0e 100644 (file)
@@ -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;