Unbreak the build for non-Windows platforms, fixing obviously untested
authorSven Panne <sven.panne@aedion.de>
Thu, 23 Jul 2009 19:07:34 +0000 (19:07 +0000)
committerSven Panne <sven.panne@aedion.de>
Thu, 23 Jul 2009 19:07:34 +0000 (19:07 +0000)
recent commits.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@831 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_init.c
src/freeglut_internal.h
src/freeglut_menu.c
src/freeglut_window.c

index b419025..c9bd04d 100644 (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 FGAPIENTRY __glutInitWithExit( int *pargc, char **argv, void (__cdecl *exit_function)(int) )
index 121df1a..cb294aa 100644 (file)
@@ -933,7 +933,7 @@ int fgHintPresent(Window window, Atom property, Atom hint);
 
 SFG_Proc fghGetProcAddress( const char *procName );
 
-#ifdef TARGET_HOST_MS_WINDOWS
+#if TARGET_HOST_MS_WINDOWS
 extern void (__cdecl *__glutExitFunc)( int return_value );
 #endif
 
index dccc4dc..ea5837e 100644 (file)
@@ -779,7 +779,7 @@ int FGAPIENTRY glutCreateMenu( void(* callback)( int ) )
     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) )
 {
   __glutExitFunc = exit_function;
index 6366d0e..04e4b0b 100644 (file)
@@ -1093,7 +1093,7 @@ int FGAPIENTRY glutCreateWindow( const char* title )
                            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) )
 {
   __glutExitFunc = exit_function;