]> git.mxchange.org Git - simgear.git/blobdiff - simgear/xgl/xgl.c
Oops, ALUT 1.0 requires a little more work than expected.
[simgear.git] / simgear / xgl / xgl.c
index bd74a0540ad6b8484789346059fd54e62d0bf6cc..2e7119575796041068e1563b8e6f7296896e3b42 100644 (file)
@@ -2,12 +2,11 @@
 #  include <simgear_config.h>
 #endif
 
-#ifdef HAVE_WINDOWS_H
-#  include <windows.h>
-#endif
-
 #include "xgl.h"
+
+#ifdef USING_GLUT
 #include GLUT_H
+#endif
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -2729,6 +2728,7 @@ void xglViewport ( GLint x, GLint y, GLsizei width, GLsizei height )
     glViewport ( x, y, width, height ) ;
 }
 
+#ifdef USING_GLUT
 void xglutAddMenuEntry ( char* label, int value )
 {
   if ( xglTraceIsEnabled("glutAddMenuEntry") )
@@ -2864,6 +2864,7 @@ void xglutSwapBuffers ()
   if ( xglExecuteIsEnabled("glutSwapBuffers") )
     glutSwapBuffers () ;
 }
+#endif
 
 GLboolean xglAreTexturesResidentEXT ( GLsizei n, GLuint* textures, GLboolean* residences )
 {