#include <stdio.h>
#include <stdlib.h>
-#include <GL/glut.h>
+
+#include <simgear/compiler.h>
+#if defined( __APPLE__)
+# include <OpenGL/OpenGL.h>
+# include <GLUT/glut.h>
+#else
+# include <GL/gl.h>
+# include <GL/glut.h>
+#endif
+
void getPrints ( GLenum token, char *string )
{