Apple seems to think the should put GL.h in OpenGL instead of GL..
putting it all gtkgl.h makes it a little easier, but requires gtkgl.h to
be included in the install and by grits.h.
15 files changed:
grits-opengl.h \
grits-plugin.h \
grits-util.h \
+ gtkgl.h \
gpqueue.h \
roam.h
#include <string.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
-#include <GL/gl.h>
-#include <GL/glu.h>
#include "grits-opengl.h"
#include "grits-util.h"
/* Plugins */
#include <grits-plugin.h>
+/* Misc */
+#include <gtkgl.h>
+
#endif
#ifndef __GTK_GL_H__
#define __GTK_GL_H__
+#include <gtk/gtk.h>
+
+/* Platform dependant OpenGL includes */
+#ifdef USE_MAC
+#include <OpenGL/gl.h>
+#include <OpenGL/glu.h>
+#else
+#include <GL/gl.h>
+#include <GL/glu.h>
+#endif
+
/* Call before widget is realized */
void gtk_gl_enable(GtkWidget *widget);
*/
#include <config.h>
-#include <GL/gl.h>
+#include "gtkgl.h"
#include "grits-marker.h"
/**
#include <config.h>
#include <math.h>
-#include <GL/gl.h>
+#include "gtkgl.h"
#include "grits-object.h"
/* Constants */
*/
#include <config.h>
-#include <GL/gl.h>
-#include <GL/glu.h>
+#include "gtkgl.h"
#include "grits-poly.h"
/* Drawing */
*/
#include <config.h>
-#include <GL/gl.h>
+#include "gtkgl.h"
#include "grits-tile.h"
gchar *grits_tile_path_table[2][2] = {
#include <config.h>
#include <math.h>
#include <glib.h>
-#include <GL/gl.h>
+#include "gtkgl.h"
#include "grits-volume.h"
/* Drawing */
*/
#include <glib/gstdio.h>
-#include <GL/gl.h>
#include <grits.h>
*/
#include <math.h>
-#include <GL/gl.h>
#include <grits.h>
#include <time.h>
#include <glib/gstdio.h>
-#include <GL/gl.h>
#include <grits.h>
#include <time.h>
#include <glib/gstdio.h>
-#include <GL/gl.h>
#include <grits.h>
#include <string.h>
-#include <GL/gl.h>
-#include <GL/glu.h>
-
#include <gdk/gdkkeysyms.h>
#include <grits.h>
#include <glib.h>
#include <math.h>
#include <string.h>
-#include <GL/gl.h>
-#include <GL/glu.h>
+#include "gtkgl.h"
#include "gpqueue.h"
#include "grits-util.h"
#include "roam.h"