make include gl.h multiplatform
[mussa.git] / alg / glsequence.hpp
index b9a84f91ada055933b33aabdee803f12bf74c735..4e992f3ee05ab2038e3a9bd892f5a8b58c634c76 100644 (file)
@@ -4,7 +4,13 @@
 #include "alg/annotation_colors.hpp"
 #include "alg/sequence.hpp"
 #include "alg/color.hpp"
-#include <gl.h>
+// isn't it lovely how the header file can live in different places?
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#else
+#include <GL/gl.h>
+#endif
+
 //! Manage rendering a mussa sequence track
 /*! The idea is this will keep track of the location of where the sequence
  *  is being rendered, and handle displaying annotations on that track